-
Notifications
You must be signed in to change notification settings - Fork 62
/
codecov.yml
34 lines (33 loc) · 1.45 KB
/
codecov.yml
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
# any changes to this file MUST be validated prior to comitting!!
#
# Powershell: Invoke-RestMethod -Uri https://codecov.io/validate -Body (Get-Content -Raw -LiteralPath .\codecov.yml) -Method post
# shell: curl --data-binary @codecov.yml https://codecov.io/validate
#
codecov:
branch: main
require_ci_to_pass: false # codecov won't wait for all other CI status to pass before sending its status
notify:
wait_for_ci: false
coverage:
range: "80..100" # 80% or higher is green
status:
project: # project-level settings (i.e., main branch)
default:
target: auto # target coverage is based on current base commit
threshold: 0.5% # code coverage can drop by 0.5% below the base commit's coverage and still be successful
if_ci_failed: error
informational: false # if true, status will pass regardless regardless of other settings
patch: # pull request status
default:
target: auto
threshold: 80% # 80% of changed code in a PR must have code coverage for the CI to pass
if_ci_failed: error
informational: false # if true, status will pass regardless regardless of other settings
only_pulls: true # individual commits to a branch will not be considered, only pull requests
flag_management:
default_rules:
carryforward: true
comment:
layout: "diff, flags, files"
behavior: new # new comment will be posted and existing comment deleted
show_carryforward_flags: false