-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcodecov.yml
More file actions
55 lines (50 loc) · 1.25 KB
/
codecov.yml
File metadata and controls
55 lines (50 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Codecov configuration
# https://docs.codecov.com/docs/codecov-yaml
coverage:
# Coverage status checks
status:
project:
default:
# Target 70% coverage (current: 76%+)
target: 70%
# Allow coverage to drop by 2% without failing
threshold: 2%
if_ci_failed: error
patch:
default:
# New code should have coverage, but be lenient
# Many changes are config/frontend that don't need tests
target: 50%
threshold: 10%
# Only apply to src/ files
only_pulls: true
# Coverage precision (2 decimal places)
precision: 2
round: down
# Highlight files below 60% as critical
range: "60...100"
# Comment settings for PRs
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: true
require_base: false
require_head: true
# Ignore certain paths from coverage
ignore:
- "tests/**/*"
- "scripts/**/*"
- "**/__init__.py"
- "src/scripts/**/*"
# Flag management
flags:
unittests:
paths:
- src/
carryforward: true
integration:
paths:
- src/
carryforward: true
# Integration tests run less frequently (only when related files change)
# Carryforward ensures previous coverage is used when skipped