Repository navigation
Expand file tree
/
Copy pathcodecov.yml
More file actions
78 lines (67 loc) · 1.89 KB
/
Copy pathcodecov.yml
File metadata and controls
78 lines (67 loc) · 1.89 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Codecov configuration for btrfs-backup-ng
# https://docs.codecov.com/docs/codecovyml-reference
coverage:
# Coverage thresholds
status:
project:
default:
# Require coverage to not drop below current level
target: auto
# Allow small decreases (0.5%) to avoid blocking minor changes
threshold: 0.5%
# Only check against base commit on PRs
if_ci_failed: error
patch:
default:
# New code in PRs should have reasonable coverage
target: 60%
# Only fail if significantly below target
threshold: 10%
# Precision for coverage percentage display
precision: 2
round: down
# PR comment settings
comment:
# Post detailed coverage report as PR comment
layout: "condensed_header, diff, flags, components"
# Update existing comment instead of posting new ones
behavior: default
# Always post comment (even if coverage unchanged)
require_changes: false
# Component-based coverage tracking
component_management:
individual_components:
- component_id: core
name: Core Library
paths:
- src/btrfs_backup_ng/core/**
- component_id: cli
name: CLI Commands
paths:
- src/btrfs_backup_ng/cli/**
- component_id: config
name: Configuration
paths:
- src/btrfs_backup_ng/config/**
- component_id: utilities
name: Utilities
paths:
- src/btrfs_backup_ng/__util__.py
- src/btrfs_backup_ng/transaction.py
- src/btrfs_backup_ng/retention.py
- src/btrfs_backup_ng/notifications.py
# Flag management for test segmentation
flag_management:
individual_flags:
- name: unittests
paths:
- src/btrfs_backup_ng/
carryforward: true
# Ignore certain paths from coverage
ignore:
- "tests/**"
- "**/__pycache__/**"
- "**/conftest.py"
# GitHub integration settings
github_checks:
annotations: true