From ce0f1bcd07fc6ba219b65cd4a98074bb79815f8c Mon Sep 17 00:00:00 2001 From: schroedtert Date: Sun, 8 Dec 2024 14:03:57 +0100 Subject: [PATCH 1/2] Use codecov only for informational purposes The code coverage for a new patch/change is only shown for informational purposes. It should not block any PR, rather it should be a point to discuss about. --- codecov.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codecov.yml b/codecov.yml index b25a74b5..b6fc63c2 100644 --- a/codecov.yml +++ b/codecov.yml @@ -6,10 +6,12 @@ coverage: default: target: auto threshold: 50% # Allow more fluctuation + informational: true # Do not fail CI; only provide information patch: default: target: auto threshold: 10% # Stricter for new changes + informational: true # Do not fail CI; only provide information comment: layout: "condensed_header, condensed_files, condensed_footer" # add "condensed_" to "header", "files" and "footer" From 90acde6a3abf289dbdb7b28b07d2135e7a8b2750 Mon Sep 17 00:00:00 2001 From: schroedtert Date: Sun, 8 Dec 2024 14:05:40 +0100 Subject: [PATCH 2/2] Use one single run to be uploaded to codecov --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4381105d..f1eef3da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,6 +83,7 @@ jobs: - name: Upload results to Codecov uses: codecov/codecov-action@v4 + if: matrix.os == 'ubuntu-24.04' with: token: ${{ secrets.CODECOV_TOKEN }}