Skip to content

Commit 8eb64a2

Browse files
committed
github: use upload token for coverage
This won't resolve the failed coverage uploads on pull requests, though. But main repository builds should become stable and always update the coverage.
1 parent e3cee03 commit 8eb64a2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/workflow.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646
- name: Upload coverage to Codecov
4747
# Coverage is not complete on Python <3.7 (see pym/bob/utils.py)
4848
if: matrix.python-version != '3.6'
49-
uses: codecov/codecov-action@v2
49+
uses: codecov/codecov-action@v4
50+
with:
51+
token: ${{ secrets.CODECOV_TOKEN }}
5052

5153
- name: Store the binary wheel
5254
uses: actions/upload-artifact@v3
@@ -90,7 +92,9 @@ jobs:
9092
bash ./test/run-tests.sh -c xml
9193
9294
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v2
95+
uses: codecov/codecov-action@v4
96+
with:
97+
token: ${{ secrets.CODECOV_TOKEN }}
9498

9599
build-sdist:
96100
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)