Skip to content

Commit 53b6e5f

Browse files
authored
Merge pull request #6281 from radarhere/codecov
2 parents 65c832d + de75af3 commit 53b6e5f

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

.github/workflows/test-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
MATRIX_DOCKER: ${{ matrix.docker }}
8080

8181
- name: Upload coverage
82-
uses: codecov/codecov-action@v1
82+
uses: codecov/codecov-action@v3
8383
with:
8484
flags: GHA_Docker
8585
name: ${{ matrix.docker }}

.github/workflows/test-mingw.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ jobs:
7373
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
7474
7575
- name: Upload coverage
76-
run: |
77-
python3 -m pip install codecov
78-
bash <(curl -s https://codecov.io/bash) -F GHA_Windows
79-
env:
80-
CODECOV_NAME: ${{ matrix.name }}
76+
uses: codecov/codecov-action@v3
77+
with:
78+
file: ./coverage.xml
79+
flags: GHA_Windows
80+
name: ${{ matrix.name }}
8181

8282
success:
8383
permissions:

.github/workflows/test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
shell: pwsh
172172

173173
- name: Upload coverage
174-
uses: codecov/codecov-action@v1
174+
uses: codecov/codecov-action@v3
175175
with:
176176
file: ./coverage.xml
177177
flags: GHA_Windows

.github/workflows/test.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ jobs:
3030
REVERSE: "--reverse"
3131
- python-version: "3.8"
3232
PYTHONOPTIMIZE: 2
33-
# Include new variables for Codecov
34-
- os: ubuntu-latest
35-
codecov-flag: GHA_Ubuntu
36-
- os: macos-latest
37-
codecov-flag: GHA_macOS
3833

3934
runs-on: ${{ matrix.os }}
4035
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
@@ -107,9 +102,11 @@ jobs:
107102
.ci/after_success.sh
108103
109104
- name: Upload coverage
110-
run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.codecov-flag }}
111-
env:
112-
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
105+
uses: codecov/codecov-action@v3
106+
with:
107+
file: ./coverage.xml
108+
flags: ${{ matrix.os == 'macos-latest' && 'GHA_macOS' || 'GHA_Ubuntu' }}
109+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
113110

114111
success:
115112
permissions:

0 commit comments

Comments
 (0)