Skip to content

Commit b96412b

Browse files
committed
Specify coverage rule to combine results
We can specify a rule to map different source files from which coverage stats were collected to the same source file in our repository.
1 parent 6145f46 commit b96412b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.coveragerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
[run]
22
# this file comes from versioneer and we don't test it
33
omit = */_version.py
4+
5+
[paths]
6+
# This tells coverage how to combine results together or said differently
7+
# which files at different paths are actually the same file
8+
# documented at https://coverage.readthedocs.io/en/latest/config.html#paths
9+
source =
10+
repo2docker/
11+
/opt/hostedtoolcache/Python/*/site-packages/repo2docker

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ jobs:
106106
pip install --upgrade setuptools pip wheel
107107
pip install --upgrade -r dev-requirements.txt
108108
python setup.py bdist_wheel
109-
#pip install dist/*.whl
110-
pip install -e.
109+
pip install dist/*.whl
111110
pip freeze
112111
# hg-evolve pinned to 9.2 because hg-evolve dropped support for
113112
# hg 4.5, installed with apt in Ubuntu 18.04

0 commit comments

Comments
 (0)