Skip to content

Commit c38f997

Browse files
authored
Use pytest-xdist for parallel tests (#45)
1 parent cc22ac7 commit c38f997

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ script:
3737
- flake8 --version
3838
- flake8 src
3939
- flake8 --exclude=src,docs --extend-ignore=D
40-
- pytest --cov=akro
40+
- pytest -n $(nproc) --cov=akro
4141
- pushd docs && make html && popd
4242

4343
after_script:

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
# See https://gitlab.com/pycqa/flake8-docstrings/issues/36
2929
'pydocstyle<4.0.0',
3030
'pylint',
31-
'pytest>=3.6', # Required for pytest-cov on Python 3.6
31+
'pytest>=4.4.0', # Required for pytest-xdist
3232
'pytest-cov',
33+
'pytest-xdist',
3334
'sphinx',
3435
'recommonmark',
3536
'yapf',

0 commit comments

Comments
 (0)