Skip to content

Commit

Permalink
Specify coverage rule to combine results
Browse files Browse the repository at this point in the history
We can specify a rule to map different source files from which coverage
stats were collected to the same source file in our repository.
  • Loading branch information
betatim committed Jan 23, 2021
1 parent 6145f46 commit b96412b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[run]
# this file comes from versioneer and we don't test it
omit = */_version.py

[paths]
# This tells coverage how to combine results together or said differently
# which files at different paths are actually the same file
# documented at https://coverage.readthedocs.io/en/latest/config.html#paths
source =
repo2docker/
/opt/hostedtoolcache/Python/*/site-packages/repo2docker
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ jobs:
pip install --upgrade setuptools pip wheel
pip install --upgrade -r dev-requirements.txt
python setup.py bdist_wheel
#pip install dist/*.whl
pip install -e.
pip install dist/*.whl
pip freeze
# hg-evolve pinned to 9.2 because hg-evolve dropped support for
# hg 4.5, installed with apt in Ubuntu 18.04
Expand Down

0 comments on commit b96412b

Please sign in to comment.