Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with pytest-xdist #56

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
language: python
matrix:
include:
- python: 3.5
env: TOX_ENV=py35
- python: 3.6
env: TOX_ENV=py36
- python: 3.7
env: TOX_ENV=py37
# TODO: the dist and sudo keys are currently needed to use Python 3.7.
# They should be removed once Travis-CI supports 3.7 on the default image.
dist: xenial
sudo: true
python:
- 3.5
- 3.6
cache: pip

install: pip install tox-travis coveralls

script: tox -e $TOX_ENV
script: tox

after_success:
- tox -e coverage-report
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# coding=utf-8
import re
from pathlib import Path

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ minversion = 2.5.0

[testenv]
extras = testing
commands = coverage run -m pytest {posargs}
deps = pytest-xdist
commands = coverage run -m pytest -n auto {posargs}

[testenv:coverage-report]
deps = coverage
Expand Down