Skip to content

Commit e5a362d

Browse files
committed
ci: GHA: use scripts/report-coverage.sh
1 parent 0d4f479 commit e5a362d

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,21 +154,9 @@ jobs:
154154
run: |
155155
python scripts/append_codecov_token.py
156156
157-
- name: Combine coverage
157+
- name: Report coverage
158158
if: (!matrix.skip_coverage)
159-
run: |
160-
python -m coverage combine
161-
python -m coverage xml
162-
163-
- name: Codecov upload
164-
if: (!matrix.skip_coverage)
165-
uses: codecov/codecov-action@v1
166-
with:
167-
token: ${{ secrets.codecov }}
168-
file: ./coverage.xml
169-
flags: GHA
170-
fail_ci_if_error: false
171-
name: ${{ matrix.name }}
159+
run: bash scripts/report-coverage.sh -F GHA
172160

173161
deploy:
174162
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'

0 commit comments

Comments
 (0)