Add github action for upload coverge to codecov
This commit is contained in:
parent
1824349f74
commit
643c525842
|
@ -165,11 +165,15 @@ jobs:
|
||||||
if: "matrix.use_coverage"
|
if: "matrix.use_coverage"
|
||||||
run: "tox -e ${{ matrix.tox_env }}-coverage"
|
run: "tox -e ${{ matrix.tox_env }}-coverage"
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Generate coverge report
|
||||||
if: matrix.use_coverage && github.repository == 'pytest-dev/pytest'
|
run: python -m coverage xml
|
||||||
env:
|
|
||||||
CODECOV_NAME: ${{ matrix.name }}
|
- name: Upload coverage to Codecov
|
||||||
run: bash scripts/upload-coverage.sh -F GHA,${{ runner.os }}
|
uses: codecov/codecov-action@v2
|
||||||
|
with:
|
||||||
|
fail_ci_if_error: true
|
||||||
|
files: ./coverage.xml
|
||||||
|
verbose: true
|
||||||
|
|
||||||
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'
|
||||||
|
|
Loading…
Reference in New Issue