From 22d95fd40d9c4aa28f7a1c4875188ceee1d8a553 Mon Sep 17 00:00:00 2001 From: ethanae Date: Tue, 6 Aug 2024 15:12:51 +0200 Subject: [PATCH] - fail ci if codecov fail - drop coverage threshold from 5% - 1% --- .github/workflows/ci.yml | 2 +- codecov.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 index 3d32a03..14f4f45 100644 --- a/codecov.yml +++ b/codecov.yml @@ -3,5 +3,5 @@ coverage: project: default: target: auto - # this allows a 5% drop from the previous base commit coverage - threshold: 5% + # this allows a 1% drop from the previous base commit coverage + threshold: 1%