From 7e9caed8c2af7c2573902311995d2b74c0a7b79f Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 26 Mar 2024 22:49:26 +0100 Subject: [PATCH] ci: fix codecov upload (#43382) --- .github/workflows/audit.yaml | 1 + .github/workflows/unit_tests.yaml | 4 ++++ .github/workflows/windows_python.yml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 9abe65f6ad..eb5e110313 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -47,3 +47,4 @@ jobs: if: ${{ inputs.with_coverage == 'true' }} with: flags: unittests,audits + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml index fa53ecd5bc..4c9e29500d 100644 --- a/.github/workflows/unit_tests.yaml +++ b/.github/workflows/unit_tests.yaml @@ -94,6 +94,7 @@ jobs: - uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab with: flags: unittests,linux,${{ matrix.concretizer }} + token: ${{ secrets.CODECOV_TOKEN }} # Test shell integration shell: runs-on: ubuntu-latest @@ -125,6 +126,7 @@ jobs: - uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab with: flags: shelltests,linux + token: ${{ secrets.CODECOV_TOKEN }} # Test RHEL8 UBI with platform Python. This job is run # only on PRs modifying core Spack @@ -184,6 +186,7 @@ jobs: - uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # @v2.1.0 with: flags: unittests,linux,clingo + token: ${{ secrets.CODECOV_TOKEN }} # Run unit tests on MacOS macos: runs-on: ${{ matrix.os }} @@ -220,3 +223,4 @@ jobs: - uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab with: flags: unittests,macos + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/windows_python.yml b/.github/workflows/windows_python.yml index fce0df5ca1..3cbf82e03a 100644 --- a/.github/workflows/windows_python.yml +++ b/.github/workflows/windows_python.yml @@ -36,6 +36,7 @@ jobs: - uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab with: flags: unittests,windows + token: ${{ secrets.CODECOV_TOKEN }} unit-tests-cmd: runs-on: windows-latest steps: @@ -60,6 +61,7 @@ jobs: - uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab with: flags: unittests,windows + token: ${{ secrets.CODECOV_TOKEN }} build-abseil: runs-on: windows-latest steps: