ci: codecov: add flags for GHA/Travis
This would help with debugging missing coverage when removing Travis jobs.
This commit is contained in:
parent
6b13379f37
commit
a8d67f5e7b
|
@ -154,7 +154,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.codecov }}
|
token: ${{ secrets.codecov }}
|
||||||
file: ./coverage.xml
|
file: ./coverage.xml
|
||||||
flags: ${{ runner.os }}
|
flags: GHA
|
||||||
fail_ci_if_error: false
|
fail_ci_if_error: false
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ script: tox
|
||||||
after_success:
|
after_success:
|
||||||
- |
|
- |
|
||||||
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
|
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
|
||||||
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh
|
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh -F Travis
|
||||||
fi
|
fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
@ -15,4 +15,4 @@ python -m coverage xml
|
||||||
python -m coverage report -m
|
python -m coverage report -m
|
||||||
# Set --connect-timeout to work around https://github.com/curl/curl/issues/4461
|
# Set --connect-timeout to work around https://github.com/curl/curl/issues/4461
|
||||||
curl -S -L --connect-timeout 5 --retry 6 -s https://codecov.io/bash -o codecov-upload.sh
|
curl -S -L --connect-timeout 5 --retry 6 -s https://codecov.io/bash -o codecov-upload.sh
|
||||||
bash codecov-upload.sh -Z -X fix -f coverage.xml
|
bash codecov-upload.sh -Z -X fix -f coverage.xml "$@"
|
||||||
|
|
Loading…
Reference in New Issue