From 0edce5b9ceb16f4cb52b542bca5c65caf552202f Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam <47104651+thazhemadam@users.noreply.github.com> Date: Fri, 9 Feb 2024 23:22:15 +0530 Subject: [PATCH 1/2] ci: explicitly specify token for codecov Explicitly specify the codecov token to be used (i.e., `CODECOV_TOKEN`), given that the latest v4 release of the codecov action requires it to be able to generate coverage reports. Additionally, fail CI if coverage reporting fails, since coverage is an important enough metric for us to ensure that it's tracked consistently. --- .github/workflows/CI.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7abbd44f..fb3b1462 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,6 +41,8 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true - uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} From e8f6fdeccbf3a709b0981efc9efc4edbcca0f49d Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam <47104651+thazhemadam@users.noreply.github.com> Date: Fri, 9 Feb 2024 23:22:49 +0530 Subject: [PATCH 2/2] ci: explicitly specify token for codecov Explicitly specify the codecov token to be used (i.e., `CODECOV_TOKEN`), given that the latest v4 release of the codecov action requires it to be able to generate coverage reports. Additionally, fail CI if coverage reporting fails, since coverage is an important enough metric for us to ensure that it's tracked consistently. --- .github/workflows/Documentation.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index d269880a..ff9249e3 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -27,3 +27,5 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true