Reorder steps in unit tests workflow to clarify coverage generation process

This commit is contained in:
Palash Tyagi 2025-05-04 00:42:34 +01:00
parent cae230783e
commit 8ba39f8e87

View File

@ -38,12 +38,13 @@ jobs:
run: rustup update stable run: rustup update stable
- name: Install cargo-llvm-cov - name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
- name: Run unit tests and generate coverage
run: | run: |
echo "Running tests with code coverage"
cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info
echo "Running doctests" echo "Running doctests"
cargo test --doc --all-features --workspace --release cargo test --doc --all-features --workspace --release
echo "Running tests with code coverage"
cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info
echo "Generating documentation (no-deps)" echo "Generating documentation (no-deps)"
cargo doc --no-deps --release cargo doc --no-deps --release
- name: Upload coverage to Codecov - name: Upload coverage to Codecov