From c8e8f1b99dbf75785e1f53cd1edf8d90c5a9c13d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 20:06:23 +0000 Subject: [PATCH 1/3] Bump codecov/codecov-action from 3 to 4 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v4) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0d8044e6..eec51adc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -90,7 +90,7 @@ jobs: python -m pytest tests - name: Report coverage with Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: files: ./coverage.xml flags: unittests-${{ matrix.python-version }} From 40616ad110e327d5679bad309f88925a72d90b33 Mon Sep 17 00:00:00 2001 From: Graeme Watt Date: Wed, 17 Apr 2024 16:02:40 +0100 Subject: [PATCH 2/3] Add CODECOV_TOKEN and fail_ci_if_error option --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eec51adc..fac0e514 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -92,8 +92,11 @@ jobs: - name: Report coverage with Codecov uses: codecov/codecov-action@v4 with: + fail_ci_if_error: true files: ./coverage.xml flags: unittests-${{ matrix.python-version }} + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Save notebooks if: ${{ always() }} From e324c489b2b0c8e39dc4bc14d5b39e14ad1667fa Mon Sep 17 00:00:00 2001 From: Graeme Watt Date: Wed, 17 Apr 2024 16:16:54 +0100 Subject: [PATCH 3/3] Correct syntax for specifying CODECOV_TOKEN --- .github/workflows/tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 023959eb..6c470a24 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -126,8 +126,7 @@ jobs: fail_ci_if_error: true files: ./coverage.xml flags: unittests-${{ matrix.python-version }} - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN }} - name: Save notebooks if: ${{ always() && matrix.root-version }}