-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add code coverage report job(#45)
* ci: add build steps for test coverage reporting * fix(ci): use nightly toolchain in test job * ci: update deprecated codecov config fields * ci: use test toolchain setup step from action-rs * ci: add codecov badge to Cargo.toml * ci: use verbose test output * ci: add build step to main job * ci: add updated coverage job to build workflow * fix(ci): add missing Makefile.toml * ci: add codecov.yml file * ci: remove obsolete grcov.yml file * style(ci): move comments above fields
- Loading branch information
Showing
4 changed files
with
89 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[config] | ||
skip_core_tasks = true | ||
|
||
[tasks.coverage] | ||
description = "Generate code coverage report" | ||
command = "cargo" | ||
args = [ | ||
"llvm-cov", | ||
"--lcov", | ||
"--output-path", | ||
"target/lcov.info", | ||
"--no-default-features", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# https://docs.codecov.com/docs/codecovyml-reference#coverage | ||
coverage: | ||
precision: 1 # e.g. 89.1% | ||
round: down | ||
|
||
# https://docs.codecov.com/docs/coverage-configuration#section-range | ||
range: 85..100 | ||
|
||
# https://docs.codecov.com/docs/commit-status | ||
status: | ||
project: | ||
default: | ||
threshold: 1% # Avoid false negatives | ||
ignore: | ||
- "examples" | ||
- "benches" | ||
|
||
# https://docs.codecov.com/docs/pull-request-comments | ||
comment: | ||
# make the comments less noisy | ||
require_changes: true |