Skip to content

Commit 7d09346

Browse files
committed
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
1 parent 59a323a commit 7d09346

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,9 @@ jobs:
3030
uses: codecov/[email protected]
3131
with:
3232
verbose: true
33+
exclude: |
34+
3rdparty/**
35+
test/**
36+
demo/**
3337
env:
3438
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "70...100"
8+
9+
status:
10+
project:
11+
default:
12+
target: auto
13+
threshold: 0%
14+
base: auto
15+
patch:
16+
default:
17+
target: auto
18+
threshold: 0%
19+
base: auto
20+
21+
ignore:
22+
- "3rdparty/**/*"
23+
- "3rdparty/**"
24+
- "test/**/*"
25+
- "demo/**/*"
26+
27+
comment:
28+
layout: "reach,diff,flags,tree"
29+
behavior: default
30+
require_changes: false

0 commit comments

Comments
 (0)