Skip to content

Commit 42cdcef

Browse files
committed
Update codecov-action to v4
In V4, PRs made from forks to the upstream public repos will support tokenless uploading.
1 parent d5827bf commit 42cdcef

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/tox-test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,16 @@ jobs:
7474
- name: Run Tox
7575
run: tox -e cov
7676

77-
# Codcov Action required installing pytest-cov as it needs coverage.
77+
# Codecov Action required installing pytest-cov as it needs coverage.
7878
# The coverage library installed within tox is in virt-env and not
7979
# accessible to Codecov.
8080
- name: Install pytest cov
8181
run: pip install pytest-cov
8282
- name: Upload coverage to Codecov
83-
uses: codecov/codecov-action@v3
83+
uses: codecov/codecov-action@v4
84+
env:
85+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8486
with:
85-
token: ${{ secrets.CODECOV_TOKEN }}
8687
fail_ci_if_error: true
8788
verbose: true
8889
docs:
@@ -126,4 +127,4 @@ jobs:
126127
- name: Install Tox
127128
run: pip install tox
128129
- name: Run Tox
129-
run: tox -e py3-bandit
130+
run: tox -e py3-bandit

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ deps=
2424
pytest-cov
2525
usedevelop=true
2626
commands=
27-
pytest --cov-report=html --cov=fastpurge {posargs}
27+
pytest --cov-report=html --cov-report=xml --cov=fastpurge {posargs}
2828

2929
[testenv:docs]
3030
deps=

0 commit comments

Comments
 (0)