From 0ceba6d56b54c04ec5764b6fcfd2b1a3e4461d9f Mon Sep 17 00:00:00 2001 From: ethanae Date: Tue, 6 Aug 2024 14:51:34 +0200 Subject: [PATCH 1/2] - don't fail ci if codecov fails --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f12b64c..757ca82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,6 +113,6 @@ jobs: name: coverage - uses: codecov/codecov-action@v4 with: - fail_ci_if_error: true # optional (default = false) + fail_ci_if_error: false # optional (default = false) verbose: true # optional (default = false) token: ${{ secrets.CODECOV_TOKEN }} From 9a7a2be791ce7d413f41dd4847ba5409ef3489b3 Mon Sep 17 00:00:00 2001 From: ethanae Date: Tue, 6 Aug 2024 15:19:36 +0200 Subject: [PATCH 2/2] - add codecov.yml with 1% threshold --- .github/workflows/ci.yml | 2 +- codecov.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 757ca82..f12b64c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,6 +113,6 @@ jobs: name: coverage - uses: codecov/codecov-action@v4 with: - fail_ci_if_error: false # optional (default = false) + fail_ci_if_error: true # optional (default = false) verbose: true # optional (default = false) token: ${{ secrets.CODECOV_TOKEN }} diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..14f4f45 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,7 @@ +coverage: + status: + project: + default: + target: auto + # this allows a 1% drop from the previous base commit coverage + threshold: 1%