File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 1
- # show coverage in CI status, not as a comment.
1
+ # show coverage in CI status, not as a comment.
2
2
comment : off
3
+ fixes :
4
+ - " */site-packages/::"
3
5
coverage :
4
6
status :
5
7
project :
6
8
default :
7
9
target : auto
8
10
patch :
9
11
default :
10
- target : 20%
12
+ target : 20%
Original file line number Diff line number Diff line change 1
1
[run]
2
2
# this file comes from versioneer and we don't test it
3
3
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
+ # 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
12
+ source =
13
+ repo2docker
14
+ repo2docker
15
+ ../repo2docker
16
+ */site-packages/repo2docker
Original file line number Diff line number Diff line change @@ -114,7 +114,11 @@ jobs:
114
114
115
115
- name : " Run tests"
116
116
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 }}
118
119
119
- # Action Repo: https://github.com/codecov/codecov-action
120
- - uses : codecov/codecov-action@v1
120
+ - name : " Upload code coverage stats"
121
+ run : |
122
+ pip install codecov
123
+ pushd tests && codecov && cat
124
+ cat /home/runner/work/repo2docker/repo2docker/tests/coverage.xml
You can’t perform that action at this time.
0 commit comments