-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (39 loc) · 1.07 KB
/
coverage.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
35
36
37
38
39
name: Coverage
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: coverage-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
name: Codecov.io
continue-on-error: true
runs-on: ubuntu-latest
env:
RUST_TEST_THREADS: "1"
steps:
- name: Install rust
uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- name: Checkout
uses: actions/checkout@v4
- name: Install llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
#- uses: Swatinem/rust-cache@v1
- name: Compute Coverage
run:
cargo llvm-cov --all-features --workspace --ignore-filename-regex tests.rs --codecov --output-path codecov.json
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: codecov.json
fail_ci_if_error: true
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: codecov.json