Skip to content

Commit

Permalink
CI: Fix coverage for pytest-cov>=4
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Oct 3, 2022
1 parent ecd8dba commit cf305d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:.coverage-{envname}}
PIP_INDEX_URL = {env:PIP_INDEX_URL:https://bbpteam.epfl.ch/repository/devpi/simple}
PIP_EXTRA_INDEX_URL = {env:PIP_EXTRA_INDEX_URL:https://pypi.python.org/simple}
passenv =
PIP_EXTRA_INDEX_URL
commands = pytest \
-n {env:PYTEST_NPROCS:3} \
--dist loadgroup \
--basetemp={envtmpdir} \
--cov={envsitepackagesdir}/{[base]name} \
--cov={envsitepackagesdir}/{[base]morphval} \
--cov-branch \
--cov-fail-under=58.8 \
--cov-fail-under=58 \
--no-cov-on-fail \
--cov-report term-missing \
--cov-report html:reports/coverage-{envname} \
Expand Down

0 comments on commit cf305d3

Please sign in to comment.