forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecov.yaml
54 lines (48 loc) · 1.65 KB
/
codecov.yaml
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
codecov:
# The default branch is used to identify:
# Which branch to cache the repository YAML for UI changes.
# Which branch is the first branch on the repository dashboard in Codecov.
branch: main
# Show the Codecov status without waiting for other status checks to complete or pass.
require_ci_to_pass: no
comment: false
github_checks:
# Specify whether to use GitHub Checks annotations or normal statuses.
annotations: true
coverage:
status:
patch:
default:
# Choose a minimum coverage ratio that the commit must meet to be considered a success.
# <number> specify a target of an exact coverage number.
target: 70%
# Allow the coverage to drop by X%, and posting a success status.
threshold: 5%
# Use the pull request base if the commit is on a pull request. If not, the parent commit will be used.
base: auto
# Only post a status to pull requests.
only_pulls: true
flags:
- unit-tests
project:
default:
# `auto` will use the coverage from the base commit (pull request base or parent commit) coverage to compare against.
target: auto
antrea-unit-tests:
target: auto
# Flags are a list of user defined Flags, and the impact on their coverage.
flags:
- unit-tests
flag_management:
default_rules:
carryforward: true
# Exclude files from being collected by Codecov. Ignored files will be skipped during processing.
ignore:
- "**/testing/*.go"
- "**/mock_*.go"
- "**/*generate*.go"
- "pkg/client"
- "**/pkg/client"
- "**/*.pb.go"
- "third_party"
- "bincover_run_main_test*"