forked from Talus-Network/nexus-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
86 lines (78 loc) · 1.65 KB
/
codecov.yml
File metadata and controls
86 lines (78 loc) · 1.65 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
# codecov.yml
coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
# Coverage can drop by 1% and still be green
threshold: 1%
target: auto # Compares to base branch
base: auto
if_ci_failed: error
informational: false
only_pulls: false
patch:
cli:
# CLI patch coverage is informational only
target: 80%
threshold: 10%
base: auto
if_ci_failed: error
informational: true
paths:
- "cli/"
default:
# New code should have at least 80% coverage
target: 80%
threshold: 10% # Allow 10% drop for edge cases
base: auto
if_ci_failed: error
informational: false
paths:
- "!cli/"
component_management:
individual_components:
- component_id: cli
name: CLI Module
paths:
- cli/**
- component_id: sdk
name: SDK Module
paths:
- sdk/**
- component_id: toolkit
name: Toolkit Rust
paths:
- toolkit-rust/**
- component_id: tools
name: Tools
paths:
- tools/**
comment:
layout: "header, diff, flags, components, files, footer"
behavior: default
require_changes: true
require_base: true
require_head: true
hide_project_coverage: false
ignore:
- "**/tests/**"
- "**/test_*.rs"
- "**/mock_*.rs"
- "**/examples/**"
- "**/benches/**"
- "**/*.pb.rs"
- "**/target/**"
- "**/build.rs"
flags:
unittests:
paths:
- cli/
- sdk/
- toolkit-rust/
- tools/
carryforward: true
github_checks:
annotations: true