From 8ba39f8e87b842e06b264b689f4c77cc3c34f544 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sun, 4 May 2025 00:42:34 +0100 Subject: [PATCH] Reorder steps in unit tests workflow to clarify coverage generation process --- .github/workflows/run-unit-tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 0ad6482..d54568b 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -38,12 +38,13 @@ jobs: run: rustup update stable - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - - name: Generate code coverage + + - name: Run unit tests and generate coverage run: | - echo "Running tests with code coverage" - cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info echo "Running doctests" 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)" cargo doc --no-deps --release - name: Upload coverage to Codecov