Changeg source file aliasing
MODIFY
.coveragerc
.coveragerc
@@ -6,6 +6,11 @@ omit = */_version.py
# 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
+# Yes, we list repo2docker twice here. This allows you to install repo2docker
+# with `pip install -e.` for local development and from the wheel (as done on
+# CI) and get `repo2docker/foo.py` as paths in the coverage report
source =
- repo2docker/
- /opt/hostedtoolcache/Python/*/site-packages/repo2docker
+ repo2docker
+ repo2docker
+ ../repo2docker
+ */site-packages/repo2docker

MODIFY
.github/workflows/test.yml
.github/workflows/test.yml
@@ -114,7 +114,10 @@ jobs:
- name: "Run tests"
run: |
- pytest --durations 10 --cov repo2docker -v tests/${{ matrix.repo_type }}
+ cd tests
+ pytest --durations 10 --cov repo2docker -v ${{ matrix.repo_type }}
# Action Repo: https://github.com/codecov/codecov-action
- uses: codecov/codecov-action@v1
+ with:
+ directory: ./tests

Changeg source file aliasing