-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
66 lines (60 loc) · 1.72 KB
/
codecov.yml
File metadata and controls
66 lines (60 loc) · 1.72 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
# Codecov Configuration
# Documentation: https://docs.codecov.com/docs/codecovyml-reference
codecov:
require_ci_to_pass: true
notify:
wait_for_ci: true
coverage:
# Coverage analysis settings
status:
# Status for overall project coverage
project:
default:
# Target: 'auto' means Codecov automatically determines the target
# based on the recent coverage history of the project
target: 80%
# Allow coverage to drop by this much before failing
threshold: 1%
# Only consider files matching these patterns
paths:
- "engine/codeflow_engine/**"
# Ignore missing coverage from these paths
if_no_uploads: error
# Status for changes in the PR (patch coverage)
patch:
default:
# Target: 'auto' means Codecov automatically determines the target
# based on the recent coverage history of the project
target: 70%
threshold: 1%
if_no_uploads: success
# Ignore files that don't need coverage
ignore:
- "engine/tests/**"
- "docs/**"
- "examples/**"
- "engine/scripts/**"
- "**/__pycache__/**"
- "engine/**/migrations/**"
- "engine/setup.py"
# Comment settings for PR comments
comment:
# Layout of the comment
layout: "header, diff, flags, components"
# Behavior for comments
behavior: default
# Require at least this many builds before commenting
require_changes: false
# Include base report in the comment
require_base: false
# Include head report in the comment
require_head: true
# Flags for different types of tests
flags:
unittests:
paths:
- "engine/codeflow_engine/**"
carryforward: true
# GitHub-specific configuration
github_checks:
annotations: true