From 7d09346ce5459160f9c16f500b79f56f60ea4489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=A4=B4=E4=BA=91?= Date: Wed, 10 Dec 2025 05:05:01 +0000 Subject: [PATCH] feat(ci): exclude 3rdparty folder from codecov coverage - Add codecov.yml configuration to exclude 3rdparty, test, and demo directories - Update GitHub Actions workflow with exclude parameter in codecov-action - Ensures only project source code is included in coverage metrics This provides double protection: 1. codecov.yml filters on CodeCov service side 2. workflow exclude filters during upload --- .github/workflows/codecov.yml | 4 ++++ codecov.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 5698e6e..050dd71 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -30,5 +30,9 @@ jobs: uses: codecov/codecov-action@v4.0.1 with: verbose: true + exclude: | + 3rdparty/** + test/** + demo/** env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..d63d1ec --- /dev/null +++ b/codecov.yml @@ -0,0 +1,30 @@ +codecov: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "70...100" + + status: + project: + default: + target: auto + threshold: 0% + base: auto + patch: + default: + target: auto + threshold: 0% + base: auto + +ignore: + - "3rdparty/**/*" + - "3rdparty/**" + - "test/**/*" + - "demo/**/*" + +comment: + layout: "reach,diff,flags,tree" + behavior: default + require_changes: false