-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodecov.yml
More file actions
39 lines (34 loc) · 986 Bytes
/
codecov.yml
File metadata and controls
39 lines (34 loc) · 986 Bytes
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
# Codecov Configuration
# https://docs.codecov.com/docs/codecovyml-reference
coverage:
status:
project:
default:
target: auto
threshold: 2% # Allow 2% coverage drop without failing
patch:
default:
target: 80% # New code should have 80% coverage
# Flag configuration for PR vs main coverage strategy
flag_management:
default_rules:
carryforward: true # Carry forward coverage from previous uploads
statuses:
- type: project
- type: patch
individual_flags:
# Full test suite (main branch only)
- name: full-python-3.12
carryforward: true
paths:
- src/cachekit/
# Critical tests (PRs) - carryforward from full coverage
- name: critical-python-3.12
carryforward: true
carryforward_mode: labels
paths:
- src/cachekit/
comment:
layout: "header, diff, flags, components"
behavior: default
require_changes: true # Only comment if coverage changed