Skip to content

chore(deps): update actions/setup-python action to v6.1.0 #175

chore(deps): update actions/setup-python action to v6.1.0

chore(deps): update actions/setup-python action to v6.1.0 #175

Workflow file for this run

name: coverage
on:
push:
branches:
- main
paths-ignore:
- README.md
- CONTRIBUTING.md
pull_request:
branches:
- main
paths-ignore:
- README.md
- CONTRIBUTING.md
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Cinstrument-coverage
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@e43a5023a747770bfcb71ae048541a681714b951 # v2.62.33
with:
tool: cargo-llvm-cov
- name: Cache cargo registry
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Cache target
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: target
key: ${{ runner.os }}-coverage-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-coverage-target-
- name: Run coverage
run: cargo llvm-cov --workspace --all-features --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
flags: rust