Debian Codegraph @

.github/workflows/coverage.yml

raw symbols SCIP
1 on:
2 push:
3 branches: [ main, auto, canary ]
4 pull_request:
5 branches:
6 - main
7
8 name: Test coverage
9 env:
10 CARGO_TERM_COLOR: always
11
12
13 jobs:
14 coverage:
15 name: Collect test coverage
16 runs-on: ubuntu-latest
17 # nightly rust might break from time to time
18 continue-on-error: true
19 env:
20 RUSTFLAGS: -D warnings
21 steps:
22 - uses: actions/checkout@v3
23 - uses: dtolnay/rust-toolchain@stable
24 with:
25 components: llvm-tools-preview
26 - uses: Swatinem/rust-cache@v2
27
28 - name: Install latest nextest release
29 uses: taiki-e/install-action@nextest
30 - name: Install cargo-llvm-cov
31 uses: taiki-e/install-action@cargo-llvm-cov
32 - name: Update Cargo.lock
33 run: cargo update
34 - name: Collect coverage data
35 run: cargo llvm-cov nextest --all-features --lcov --output-path lcov.info
36 - name: Upload coverage data to codecov
37 uses: codecov/codecov-action@v3
38 with:
39 files: lcov.info