From 9097c97f99623faad4cdb6080b2df3bf46117de5 Mon Sep 17 00:00:00 2001 From: endolith Date: Thu, 4 Jul 2024 01:21:40 -0400 Subject: [PATCH] Update codecov action to v4, limit to latest version Token is required for Codecov now Only upload coverage report for latest version (since the project should behave the same under every version) --- .github/workflows/python-package.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index d287855..d484f40 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -56,4 +56,11 @@ jobs: pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3.1.1 + if: matrix.python-version == '3.12' + uses: codecov/codecov-action@v4 + with: + files: ./coverage.xml + fail_ci_if_error: true + verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}