Skip to content

Commit

Permalink
Use parallel=True to workaround nedbat/coveragepy#883
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Mar 17, 2020
1 parent 5cd775a commit 086bc5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
path: dist
- name: Coverage tests
env:
PYTEST_ADDOPTS: -n auto --cov diofant --cov-append -m "not slow and not xfail" --ignore docs
PYTEST_ADDOPTS: -n auto --cov diofant -m "not slow and not xfail" --ignore docs
run: |
python setup.py test
- name: Slow tests
Expand All @@ -70,7 +70,7 @@ jobs:
run: python setup.py test
- name: Extra coverage tests
env:
PYTEST_ADDOPTS: -n auto --cov diofant --cov-append -m "not slow and not xfail" --ignore docs
PYTEST_ADDOPTS: -n auto --cov diofant -m "not slow and not xfail" --ignore docs
run: |
pip uninstall -y gmpy2
DIOFANT_GROUND_TYPES='gmpy' py.test diofant/tests/domains
Expand All @@ -79,6 +79,7 @@ jobs:
py.test diofant/tests/external diofant/tests/utilities
- name: Upload coverage data
run: |
coverage combine
for n in 1 2 3; do
if codecov --required; then
exit 0
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ develop = %(tests)s
pytest-xdist>=1.22.4
pytest-cov
pylint
coverage!=5.0.0,!=5.0.1,!=5.0.2,!=5.0.3
coverage>=5.0.0
pytest-runner
isort
codecov
Expand Down Expand Up @@ -109,6 +109,7 @@ filterwarnings = ignore::UserWarning
branch = True
omit = diofant/tests/*
diofant/tests/*/*
parallel = True
[coverage:html]
directory = build/coverage/html
[coverage:report]
Expand Down

0 comments on commit 086bc5f

Please sign in to comment.