From e0f5df9f95f5c2385e651c99c28c79be0129ea17 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 13 Jun 2023 09:28:15 +0100 Subject: [PATCH 1/3] Update codecov action version --- .github/workflows/test_and_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index f19bd28a..a40a86e8 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -57,7 +57,7 @@ jobs: if: ${{ always() }} - name: Coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 deploy: # this will run when you have tagged a commit, starting with "v*" From 6b10358715b8ed54e7867fffcf0d9f442dd1a978 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 13 Jun 2023 09:28:53 +0100 Subject: [PATCH 2/3] Use codecov token to upload --- .github/workflows/test_and_deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index a40a86e8..3c403d05 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -58,6 +58,8 @@ jobs: - name: Coverage uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} deploy: # this will run when you have tagged a commit, starting with "v*" From db7d054a9a367936b022f6657c08a0daf6da64b6 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 13 Jun 2023 09:29:23 +0100 Subject: [PATCH 3/3] Fail CI if codecov fails --- .github/workflows/test_and_deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 3c403d05..3283b0e8 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -60,6 +60,7 @@ jobs: uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true deploy: # this will run when you have tagged a commit, starting with "v*"