-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.codecov.yml
More file actions
113 lines (107 loc) · 2.53 KB
/
.codecov.yml
File metadata and controls
113 lines (107 loc) · 2.53 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
codecov:
notify:
wait_for_ci: true
require_ci_to_pass: true
coverage:
precision: 2
round: down
range:
- 60.0
- 80.0
status:
project:
default:
target: auto
threshold: 1.0 # Reduced threshold to be less strict
if_ci_failed: error
if_not_found: success # Don't fail if coverage not found
patch:
default:
target: 70% # Reduced from 80% to be more achievable
threshold: 1.0
if_ci_failed: error
if_not_found: success
branches:
- "!main"
- "!master"
changes: false
# Flags for different parts of the codebase
flag_management:
default_rules:
carryforward: true
statuses:
- type: project
target: auto
threshold: 1.0
if_not_found: success
- type: patch
target: 70%
threshold: 1.0
if_not_found: success
# Components for modular coverage tracking
component_management:
default_rules:
statuses:
- type: project
target: auto
threshold: 1.0
if_not_found: success
- type: patch
target: 70%
threshold: 1.0
if_not_found: success
individual_components:
- component_id: backend-auth
name: "Authentication System"
paths:
- "backend/app/auth/**"
- component_id: backend-expenses
name: "Expense Management"
paths:
- "backend/app/expenses/**"
- component_id: backend-groups
name: "Group Management"
paths:
- "backend/app/groups/**"
- component_id: backend-user
name: "User Management"
paths:
- "backend/app/user/**"
- component_id: backend-core
name: "Backend Core"
paths:
- "backend/app/config.py"
- "backend/app/database.py"
- "backend/app/dependencies.py"
- "backend/main.py"
# Ignore files that don't need coverage
ignore:
- "**/__pycache__/**"
- "**/*.pyc"
- "docs/**"
- "*.md"
- "*.yml"
- "*.yaml"
- "*.toml"
- "requirements*.txt"
- "setup*.sh"
- "setup*.bat"
- "*.json"
- "ui-poc/**"
- "frontend/**" # Ignore entire frontend directory
- "**/node_modules/**"
- "**/dist/**"
- "**/build/**"
- "**/*.config.js"
- "**/*.config.ts"
# Comments on PRs
comment:
layout: "header, diff, components"
behavior: default
require_changes: false
require_base: false
require_head: false # Don't require head report to show comment
show_carryforward_flags: false
# Make codecov less strict for Dependabot PRs
github_checks:
annotations: true