From 74343b6e8c56a04d9b6cf5878f5bcffc7c3d37d7 Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Tue, 16 Apr 2024 02:24:35 +0000 Subject: [PATCH] fix code coverage calculation Signed-off-by: Subhobrata Dey --- .codecov.yml | 12 ++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..00f1a2677 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,12 @@ +codecov: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "75...100" + status: + project: + default: + target: 75% # the required coverage value + threshold: 1% # the leniency in hitting the target diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b27e28d2..86c97c78c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: cp ./build/distributions/*.zip security-analytics-artifacts - name: Upload Coverage Report - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }}