Skip to content

Commit 2d21bc0

Browse files
authored
Replaced Codecov bash uploader with GitHub Action
1 parent dc4906c commit 2d21bc0

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ jobs:
2727
REVERSE: "--reverse"
2828
- python-version: "3.8"
2929
PYTHONOPTIMIZE: 2
30-
# Include new variables for Codecov
31-
- os: ubuntu-latest
32-
codecov-flag: GHA_Ubuntu
33-
- os: macos-latest
34-
codecov-flag: GHA_macOS
3530

3631
runs-on: ${{ matrix.os }}
3732
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
@@ -104,9 +99,11 @@ jobs:
10499
.ci/after_success.sh
105100
106101
- name: Upload coverage
107-
run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.codecov-flag }}
108-
env:
109-
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
102+
uses: codecov/codecov-action@v3
103+
with:
104+
file: ./coverage.xml
105+
flags: ${{ matrix.os == 'macos-latest' && 'GHA_macOS' || 'GHA_Ubuntu' }}
106+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
110107

111108
success:
112109
needs: build

0 commit comments

Comments
 (0)