-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
162 lines (141 loc) · 4.25 KB
/
Copy pathcodecov.yml
File metadata and controls
162 lines (141 loc) · 4.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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# ==============================================================================
# UCID Codecov Configuration
# Urban Context Identifier - Python Library
# Version: 1.0.5
# Copyright 2026 UCID Foundation. Licensed under EUPL-1.2.
# https://docs.codecov.com/docs/codecov-yaml
# ==============================================================================
# ==============================================================================
# General Settings
# ==============================================================================
codecov:
require_ci_to_pass: true
notify:
wait_for_ci: true
max_report_age: 24h
# ==============================================================================
# Coverage Configuration
# ==============================================================================
coverage:
precision: 2
round: down
range: "70...100"
status:
# Project-level coverage
project:
default:
target: 80%
threshold: 2%
informational: false
only_pulls: false
# Stricter targets for core modules
core:
paths:
- "src/ucid/core/"
target: 90%
threshold: 1%
# Context modules
contexts:
paths:
- "src/ucid/contexts/"
target: 85%
threshold: 2%
# Patch-level coverage (new code)
patch:
default:
target: 80%
threshold: 5%
informational: false
only_pulls: true
# ==============================================================================
# Flags
# ==============================================================================
flags:
unittests:
paths:
- src/ucid/
carryforward: true
after_n_builds: 1
integration:
paths:
- src/ucid/
carryforward: false
# ==============================================================================
# Component Management
# ==============================================================================
component_management:
default_rules:
statuses:
- type: project
target: auto
- type: patch
target: auto
individual_components:
- component_id: core
name: Core Library
paths:
- src/ucid/core/**
- component_id: contexts
name: Context Algorithms
paths:
- src/ucid/contexts/**
- component_id: spatial
name: Spatial Operations
paths:
- src/ucid/spatial/**
- component_id: data
name: Data Integration
paths:
- src/ucid/data/**
- component_id: api
name: REST API
paths:
- src/ucid/api/**
# ==============================================================================
# Comment Configuration
# ==============================================================================
comment:
layout: "header,diff,flags,components,footer"
behavior: default
require_changes: false
require_base: false
require_head: true
hide_project_coverage: false
# Show coverage for these paths in PR comments
show_carryforward_flags: true
# ==============================================================================
# Pull Request Settings
# ==============================================================================
github_checks:
annotations: true
# ==============================================================================
# Parser Settings
# ==============================================================================
parsers:
gcov:
branch_detection:
conditional: true
loop: true
method: false
macro: false
# ==============================================================================
# Ignore Patterns
# ==============================================================================
ignore:
- "tests/**/*"
- "docs/**/*"
- "examples/**/*"
- "scripts/**/*"
- "notebooks/**/*"
- "**/__pycache__/**"
- "**/*.pyc"
- "**/conftest.py"
- "**/setup.py"
# ==============================================================================
# Fixes (path adjustments)
# ==============================================================================
fixes:
- "src/::"
# ==============================================================================
# End of codecov.yml
# ==============================================================================