From 5187e6e2a60b5f53b0978e1898f5e46194bb8a32 Mon Sep 17 00:00:00 2001 From: Rajul Kumar Date: Mon, 22 Apr 2024 23:02:38 -0400 Subject: [PATCH] Update codecov-action to v4 for tokenless uploads from forked repos codecov-action now requires token for upload. However, v4 supports tokeless uploads from PRs on forked repos. Hence, this add the token env var for codecov-action and updates the version to v4 --- .github/workflows/tox-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tox-test.yml b/.github/workflows/tox-test.yml index 52b0c2b..e6e03a8 100644 --- a/.github/workflows/tox-test.yml +++ b/.github/workflows/tox-test.yml @@ -40,7 +40,9 @@ jobs: - name: Install pytest cov run: pip install pytest-cov - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: true verbose: true