fix(deps): update cargo #569
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
name: Coverage | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- develop | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_VERSION: 1.81.0 | |
jobs: | |
coverage: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: make install-deps-ubuntu-openslide4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ env.RUST_VERSION }} | |
- name: Cache sample slide | |
id: cache-slide | |
uses: actions/cache@v4 | |
with: | |
path: tests/assets/ | |
key: slides-test | |
- name: Download sample tests data | |
if: steps.cache-slide.outputs.cache-hit != 'true' | |
run: make dl-test-images | |
- name: Install llvm-cov & Build & Tests | |
run: | | |
rustup component add llvm-tools-preview | |
cargo install cargo-llvm-cov | |
cargo llvm-cov clean --workspace # remove artifacts that may affect the coverage results | |
cargo llvm-cov --no-report --workspace --features deepzoom,openslide4 | |
cargo llvm-cov --no-run --workspace --lcov --output-path lcov.info | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: lcov.info | |
name: codecov-openslide-rs # optional | |
verbose: true # optional (default = false) |