-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodecov.yml
More file actions
56 lines (53 loc) · 1.91 KB
/
codecov.yml
File metadata and controls
56 lines (53 loc) · 1.91 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
# Codecov configuration — coverage floors enforced as PR gates.
#
# The reusable rust-ci.yml workflow does not expose tarpaulin's
# `--fail-under` flag, so the floor lives here. Codecov posts
# `codecov/project` and `codecov/patch` check-runs against the PR;
# the targets and thresholds below are what makes them red on a
# regression.
#
# Targets reflect the steady state established for v0.0.5:
# * project: 95% (baseline at this writing is 95.78%)
# * patch: 90% (baseline for fresh PRs is 93.90%)
# `threshold` allows that much erosion without flagging — small
# enough to catch real regressions, large enough to absorb tarpaulin's
# noise (line-counting drifts a fraction of a percent on transitive
# lockfile bumps).
#
# Reference: https://docs.codecov.com/docs/codecov-yaml
coverage:
status:
project:
default:
target: 95%
threshold: 1%
if_ci_failed: error
only_pulls: false
patch:
default:
target: 90%
threshold: 1%
if_ci_failed: error
# Files codecov should ignore when computing the project total. This
# mirrors the `coverage-exclude` glob the CI workflow already passes
# to tarpaulin so the two sources agree on the denominator. If the
# tarpaulin glob changes, update both in lockstep.
ignore:
- "tests/**"
- "benches/**"
- "examples/**"
- "build.rs"
- "src/yaml/**"
# `src/wasm.rs` is `#[cfg(feature = "wasm")]`-gated wasm-bindgen
# surface — only reachable via `wasm32-unknown-unknown`. Native
# tarpaulin cannot enter the function bodies. The CI's
# `wasm-build` job runs `wasm-pack test --node` against
# `tests/wasm_smoke.rs` which is the real coverage for this file.
- "src/wasm.rs"
# Don't post a PR comment for every push — the check-runs are
# sufficient and the comment thread on a long-lived branch
# accumulates noise.
comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: true