Merge pull request #6553 from blueyed/ci-gha-use-report-coverage.sh

ci: GHA: use scripts/report-coverage.sh
This commit is contained in:
Daniel Hahler 2020-01-24 19:20:23 +01:00 committed by GitHub
commit 5dcd24fecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 14 deletions

View File

@ -154,21 +154,9 @@ jobs:
run: | run: |
python scripts/append_codecov_token.py python scripts/append_codecov_token.py
- name: Combine coverage - name: Report coverage
if: (!matrix.skip_coverage) if: (!matrix.skip_coverage)
run: | run: bash scripts/report-coverage.sh -F GHA
python -m coverage combine
python -m coverage xml
- name: Codecov upload
if: (!matrix.skip_coverage)
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov }}
file: ./coverage.xml
flags: GHA
fail_ci_if_error: false
name: ${{ matrix.name }}
deploy: deploy:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest' if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'