File tree Expand file tree Collapse file tree 3 files changed +12
-33
lines changed Expand file tree Collapse file tree 3 files changed +12
-33
lines changed Original file line number Diff line number Diff line change @@ -165,11 +165,17 @@ jobs:
165
165
if : " matrix.use_coverage"
166
166
run : " tox -e ${{ matrix.tox_env }}-coverage"
167
167
168
- - name : Upload coverage
169
- if : matrix.use_coverage && github.repository == 'pytest-dev/pytest'
170
- env :
171
- CODECOV_NAME : ${{ matrix.name }}
172
- run : bash scripts/upload-coverage.sh -F GHA,${{ runner.os }}
168
+ - name : Generate coverage report
169
+ if : " matrix.use_coverage"
170
+ run : python -m coverage xml
171
+
172
+ - name : Upload coverage to Codecov
173
+ if : " matrix.use_coverage"
174
+ uses : codecov/codecov-action@v2
175
+ with :
176
+ fail_ci_if_error : true
177
+ files : ./coverage.xml
178
+ verbose : true
173
179
174
180
deploy :
175
181
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'
Original file line number Diff line number Diff line change
1
+ Add github action to upload coverage report to codecov instead of bash uploader.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments