Skip to content

Commit d56deb0

Browse files
committed
Changeg source file aliasing
1 parent b96412b commit d56deb0

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.coveragerc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ omit = */_version.py
66
# This tells coverage how to combine results together or said differently
77
# which files at different paths are actually the same file
88
# documented at https://coverage.readthedocs.io/en/latest/config.html#paths
9+
# Yes, we list repo2docker twice here. This allows you to install repo2docker
10+
# with `pip install -e.` for local development and from the wheel (as done on
11+
# CI) and get `repo2docker/foo.py` as paths in the coverage report
912
source =
10-
repo2docker/
11-
/opt/hostedtoolcache/Python/*/site-packages/repo2docker
13+
repo2docker
14+
repo2docker
15+
../repo2docker
16+
*/site-packages/repo2docker

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ jobs:
114114
115115
- name: "Run tests"
116116
run: |
117-
pytest --durations 10 --cov repo2docker -v tests/${{ matrix.repo_type }}
117+
cd tests
118+
pytest --durations 10 --cov repo2docker -v ${{ matrix.repo_type }}
118119
119120
# Action Repo: https://github.com/codecov/codecov-action
120121
- uses: codecov/codecov-action@v1
122+
with:
123+
directory: ./tests

0 commit comments

Comments
 (0)