Skip to content

Commit

Permalink
Fix the coverage report uploaded to codecov (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Mar 12, 2023
1 parent cd1b4ae commit 6d91ba2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_setup_version(reponame):
# (https://github.com/pypa/pip/issues/1197)
'tests': [
'pytest',
'pytest-cov',
'coverage',
'flake8',
],
'doc': [
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ python =
description = run test suite under {basepython}
deps = .[tests]
commands =
pytest tests --cov=numbergen --cov=param --cov-append --cov-report xml
coverage run --source=numbergen,param -m pytest tests
coverage report
coverage xml

[testenv:with_numpy]
description = run test suite with numpy under {basepython}
Expand Down
4 changes: 3 additions & 1 deletion tox27.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ python =
description = run test suite under {basepython}
deps = .[tests]
commands =
pytest tests --ignore tests/API1/testparamdepends_py3.py --cov=numbergen --cov=param --cov-append --cov-report xml
coverage run --source=numbergen,param -m pytest tests --ignore tests/API1/testparamdepends_py3.py
coverage report --omit param/_async.py
coverage xml --omit param/_async.py

[testenv:with_numpy]
description = run test suite with numpy under {basepython}
Expand Down

0 comments on commit 6d91ba2

Please sign in to comment.