From 8eb64a21dac7fb18164ea9df77430c9018fc5899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kl=C3=B6tzke?= Date: Thu, 1 Aug 2024 21:18:15 +0200 Subject: [PATCH] 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. --- .github/workflows/workflow.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 3a5e67885..18aaab797 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -46,7 +46,9 @@ jobs: - name: Upload coverage to Codecov # Coverage is not complete on Python <3.7 (see pym/bob/utils.py) if: matrix.python-version != '3.6' - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} - name: Store the binary wheel uses: actions/upload-artifact@v3 @@ -90,7 +92,9 @@ jobs: bash ./test/run-tests.sh -c xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} build-sdist: runs-on: ubuntu-latest