Skip to content

Commit 0ff67d7

Browse files
committed
CI: Upgrade CodeCov to v5 and use token for uploading reports.
- Upgrade Python actions to v5. - Upgrade checkout to v4.
1 parent a7a105a commit 0ff67d7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
name: "Tox ${{ matrix.toxenv }}"
2828
steps:
2929
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333

3434
- name: setup python
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v5
3636
with:
3737
python-version: '3.13'
3838

@@ -72,12 +72,12 @@ jobs:
7272
# Steps represent a sequence of tasks that will be executed as part of the job
7373
steps:
7474
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
75-
- uses: actions/checkout@v2
75+
- uses: actions/checkout@v4
7676
with:
7777
fetch-depth: 2
7878

7979
- name: setup python
80-
uses: actions/setup-python@v2
80+
uses: actions/setup-python@v5
8181
with:
8282
python-version: ${{ matrix.python-version }}
8383

@@ -88,10 +88,9 @@ jobs:
8888
run: tox
8989

9090
- name: Upload coverage to Codecov
91-
# see https://github.com/codecov/codecov-action/blob/master/README.md
92-
uses: codecov/codecov-action@v2
91+
uses: codecov/codecov-action@v5
9392
with:
9493
flags: unittests-${{ matrix.python-version }}
94+
token: ${{ secrets.CODECOV_TOKEN }}
9595
fail_ci_if_error: true # default = false
96-
os: toxenv
9796
verbose: true # default = false

0 commit comments

Comments
 (0)