codecov.yml avoid cache

This commit is contained in:
Ivan Folgueira Bande 2025-10-06 14:59:49 +02:00
parent 592b312d02
commit ba67be7ba2
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -15,38 +15,28 @@ jobs:
LLVM_PROFILE_FILE: "coverage-%p-%m.profraw"
steps:
# 1Checkout the repo
# Checkout the repo
- name: Checkout code
uses: actions/checkout@v4
# 2Install Rust toolchain (nightly required for coverage)
# Install Rust toolchain (nightly required for coverage)
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: llvm-tools-preview
# 3⃣ Cache build artifacts for faster CI
- name: Cache cargo build
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# 4⃣ Build and test with coverage instrumentation
# Build and test with coverage instrumentation
- name: Run tests
run: |
cargo build --all-features
cargo test --all-features
# 5Install grcov
# Install grcov
- name: Install grcov
run: cargo install grcov
# 6Generate lcov report
# Generate lcov report
- name: Generate coverage report
run: |
mkdir -p coverage
@ -60,7 +50,7 @@ jobs:
--ignore "/*" \
-o coverage/tests.lcov
# 7Upload to Codecov
# Upload to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with: