Skip to content

Commit a0a9b76

Browse files
authored
Merge pull request #4378 from hugovk/codecov-flags
Add flags to Codecov for easier coverage checking/debugging
2 parents fe3e580 + 5ac895e commit a0a9b76

5 files changed

Lines changed: 11 additions & 2 deletions

File tree

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ test_script:
8181

8282
after_test:
8383
- pip install codecov
84-
- codecov --file coverage.xml --name %PYTHON%
84+
- codecov --file coverage.xml --name %PYTHON% --flags AppVeyor
8585

8686
matrix:
8787
fast_finish: true

.ci/after_success.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ else
99
fi
1010

1111
if [[ $TRAVIS ]]; then
12-
codecov
12+
codecov --flags TravisCI
1313
fi
1414

1515
if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ]; then

.github/workflows/test-docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ jobs:
6666
uses: codecov/codecov-action@v1
6767
with:
6868
token: ${{ secrets.CODECOV_TOKEN }}
69+
flags: GHA_Docker
6970
name: ${{ matrix.docker }}

.github/workflows/test-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ jobs:
367367
with:
368368
token: ${{ secrets.CODECOV_TOKEN }}
369369
file: ./coverage.xml
370+
flags: GHA_Windows
370371
name: ${{ runner.os }} Python ${{ matrix.python-version }}
371372

372373
- name: Build wheel

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
env: PYTHONOPTIMIZE=2
2525
- python-version: "3.6"
2626
env: PYTHONOPTIMIZE=1
27+
# Include new variables for Codecov
28+
- os: ubuntu-latest
29+
codecov-flag: GHA_Ubuntu
30+
- os: macOS-latest
31+
codecov-flag: GHA_macOS
32+
2733
runs-on: ${{ matrix.os }}
2834
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
2935

@@ -103,4 +109,5 @@ jobs:
103109
uses: codecov/codecov-action@v1
104110
with:
105111
token: ${{ secrets.CODECOV_TOKEN }}
112+
flags: ${{ matrix.codecov-flag }}
106113
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)