Repository navigation
Expand file tree
/
Copy pathcodecov.yml
More file actions
48 lines (44 loc) · 2.08 KB
/
Copy pathcodecov.yml
File metadata and controls
48 lines (44 loc) · 2.08 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
comment:
after_n_builds: 1
# The coverage reports of all the test jobs are sent together, as a single
# upload, by the codecov_upload.yml workflow, so there is one build to wait
# for before commenting.
behavior: new
# Post a fresh comment at the bottom of the conversation on every update,
# rather than quietly editing the previous one in place. A drop in coverage
# should be hard to miss.
require_changes: false
# Comment even when coverage is unchanged, so its absence always means
# something went wrong with the upload rather than "nothing to report".
layout: "condensed_header, diff, flags, files, footer"
# Show the per-file breakdown in the comment itself, so a contributor can
# see which of their files lost coverage without leaving the pull request.
coverage:
round: nearest
# rounds the coverage percentage to the nearest value,
# instead of always rounding down (former default behaviour)
status:
project:
default:
target: auto
threshold: 0.5%
informational: false
# Total coverage may not fall more than 0.5% below the commit the pull
# request is based on. The tolerance absorbs the small differences
# between platforms, not real regressions.
patch:
default:
target: 80%
informational: false
# The lines a pull request adds or changes must be 80% covered, so that
# new code arrives with tests.
# These two checks are meant to warn, not to block: they go red when a pull
# request loses coverage, but they are deliberately not listed as required
# status checks in the branch protection rules, so a maintainer can still merge.
# Setting informational: true above would be the quiet option instead, forcing
# the checks green and only reporting the number.
#
# Note also that there is deliberately no `codecov:` section. It used to hold
# `notify: false`, which is not valid (notify must be a mapping) and made
# Codecov reject this whole file and fall back to its defaults. Email
# notifications are an account setting, not a repository one.