-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
still trying to figure out workflows, updated github workflows to new…
…er versions
- Loading branch information
Showing
3 changed files
with
92 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1 @@ | ||
name: coverage | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Install cargo-tarpaulin | ||
uses: taiki-e/install-action@cargo-tarpaulin | ||
|
||
- name: Run tests | ||
run: cargo test | ||
|
||
- name: Generate coverage report | ||
run: | | ||
cargo tarpaulin --verbose --workspace --timeout 120 --out xml --out html | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./cobertura.xml | ||
fail_ci_if_error: true | ||
verbose: true |
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,14 @@ | ||
coverage: # https://docs.codecov.com/docs/codecovyml-reference#coverage | ||
precision: 1 # e.g. 89.1% | ||
round: down | ||
range: 80..100 # https://docs.codecov.com/docs/coverage-configuration#section-range | ||
status: # https://docs.codecov.com/docs/commit-status | ||
project: | ||
default: | ||
threshold: 1% # Avoid false negatives | ||
ignore: | ||
- "examples" | ||
- "benches" | ||
comment: # https://docs.codecov.com/docs/pull-request-comments | ||
# make the comments less noisy | ||
require_changes: true |