From fb18b6fec2970abfc774c6dd220c9984afa0d1bd Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Mon, 3 Aug 2026 10:36:18 +0000 Subject: [PATCH 1/2] ci: treat 95% or higher project coverage as passing The project coverage status had no configuration, so Codecov applied its default of allowing no decrease at all. Any pull request that added well-tested code still nudged the overall percentage down a fraction and failed the check. Set an explicit 95% target for project coverage. Coverage of the lines a pull request changes keeps its default behaviour, so new code is still expected to be tested. --- codecov.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..d935bcbd --- /dev/null +++ b/codecov.yml @@ -0,0 +1,16 @@ +# Codecov configuration +# https://docs.codecov.com/docs/codecov-yaml + +coverage: + status: + # Overall project coverage. + # + # Passing means "the project is well covered", not "coverage never dips". + # Adding well-tested code still shifts the overall percentage slightly, and + # a fraction of a percent should not fail CI. + project: + default: + target: 95% + + # New and changed lines in a pull request keep Codecov's default behaviour, + # so a pull request is still expected to cover the code it adds. From 9befc2646e8c80cfb2cf26acafcb1423164f39b0 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Mon, 3 Aug 2026 10:44:25 +0000 Subject: [PATCH 2/2] ci: move codecov config into .github Keeps the repository root tidy, matching where dependabot and the other repository configuration already live. Codecov reads its configuration from the repository root, .github, or dev, so this location is equivalent. --- codecov.yml => .github/codecov.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename codecov.yml => .github/codecov.yml (100%) diff --git a/codecov.yml b/.github/codecov.yml similarity index 100% rename from codecov.yml rename to .github/codecov.yml