Skip to content

Commit 1940c3a

Browse files
committed
ci: add codecov config
1 parent 2c61d42 commit 1940c3a

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

codecov.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Codecov configuration
2+
# https://docs.codecov.com/docs/codecovyml-reference
3+
4+
coverage:
5+
# Coverage precision (number of decimal places)
6+
precision: 2
7+
8+
# Round coverage values
9+
round: down
10+
11+
# Range of coverage colors (red to green)
12+
range: "70...100"
13+
14+
status:
15+
# Project-level coverage requirements
16+
project:
17+
default:
18+
target: auto
19+
threshold: 5%
20+
# Informational only - never block PRs
21+
informational: true
22+
23+
# Patch coverage (for new code in PRs)
24+
patch:
25+
default:
26+
target: auto
27+
threshold: 5%
28+
# Informational only - never block PRs
29+
informational: true
30+
31+
# Ignore generated and non-essential files
32+
ignore:
33+
- "target/**/*"
34+
- "tests/**/*"
35+
- "**/tests/**/*"
36+
- "**/*_test.rs"
37+
- "**/test_*.rs"
38+
- "benches/**/*"
39+
- "examples/**/*"
40+
- "**/*.generated.rs"
41+
42+
# Comment configuration for PRs
43+
comment:
44+
layout: "reach,diff,flags,files"
45+
behavior: default
46+
require_changes: true
47+
require_base: false
48+
require_head: true
49+
50+
# Flag management for different test types
51+
flags:
52+
unit:
53+
paths:
54+
- src/
55+
carryforward: true
56+
57+
# GitHub integration settings
58+
github_checks:
59+
annotations: true

0 commit comments

Comments
 (0)