File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,10 @@ coverage:
3
3
status :
4
4
project :
5
5
default :
6
+ informational : true # Treat coverage info as informational only
6
7
threshold : 0.5%
8
+ patch :
9
+ default :
10
+ informational : true # Treat coverage info as informational only
11
+ github_checks :
12
+ annotations : false # Codecov may pollute the "files" diff view
Original file line number Diff line number Diff line change 43
43
run : |
44
44
python -m pip install tox
45
45
- name : Run tests
46
- run : tox -- --cov-report xml
46
+ run : tox
47
+ - name : Create coverage report
48
+ if : hashFiles('.coverage') != '' # Rudimentary `file.exists()`
49
+ run : pipx run coverage xml --ignore-errors
47
50
- name : Publish coverage
48
- if : false # disabled for #2727
51
+ if : hashFiles('coverage.xml') != '' # Rudimentary `file.exists()`
49
52
uses : codecov/codecov-action@v1
50
53
with :
51
54
flags : >- # Mark which lines are covered by which envs
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ testing =
46
46
pytest-black >= 0.3.7; \
47
47
# workaround for jaraco/skeleton#22
48
48
python_implementation != " PyPy"
49
- pytest-cov
49
+ pytest-cov; \
50
+ # coverage seems to make PyPy extremely slow
51
+ python_implementation != " PyPy"
50
52
pytest-mypy >= 0.9.1; \
51
53
# workaround for jaraco/skeleton#22
52
54
python_implementation != " PyPy"
You can’t perform that action at this time.
0 commit comments