Skip to content

Commit 38538c6

Browse files
authored
Merge pull request #6548 from blueyed/ci-codecov-flag-gha
ci: codecov: add flag for GHA
2 parents 8ca8d25 + a8d67f5 commit 38538c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
with:
155155
token: ${{ secrets.codecov }}
156156
file: ./coverage.xml
157-
flags: ${{ runner.os }}
157+
flags: GHA
158158
fail_ci_if_error: false
159159
name: ${{ matrix.name }}
160160

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ script: tox
7171
after_success:
7272
- |
7373
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
74-
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh
74+
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh -F Travis
7575
fi
7676
7777
notifications:

scripts/report-coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ python -m coverage xml
1515
python -m coverage report -m
1616
# Set --connect-timeout to work around https://github.com/curl/curl/issues/4461
1717
curl -S -L --connect-timeout 5 --retry 6 -s https://codecov.io/bash -o codecov-upload.sh
18-
bash codecov-upload.sh -Z -X fix -f coverage.xml
18+
bash codecov-upload.sh -Z -X fix -f coverage.xml "$@"

0 commit comments

Comments
 (0)