diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 80d6179..2b05661 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,10 @@ on: pull_request: # allows this workflow to be reusable (e.g. by the build workflow) workflow_call: + secrets: + CODECOV_TOKEN: + description: The token to upload coverage to codecov + required: true jobs: test: @@ -25,8 +29,8 @@ jobs: - name: Run tox run: tox - name: "Upload coverage to Codecov" - if: ${{matrix.python-version == '3.11'}} - uses: codecov/codecov-action@v3 + if: ${{matrix.python-version == '3.12'}} + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false