From 33d021072e5f113c9254a23b18d2029088a65622 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sun, 4 May 2025 00:47:13 +0100 Subject: [PATCH] Refactor unit test steps for clarity and organization --- .github/workflows/run-unit-tests.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index d54568b..c6e2f91 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -39,14 +39,15 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - - name: Run unit tests and generate coverage - run: | - 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: Run doctests + run: cargo test --doc --all-features --workspace --release + + - name: Run unit tests with code coverage + run: cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info + + - name: Test docs generation + run: cargo doc --no-deps --release + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: