Refactor unit test steps for clarity and organization

This commit is contained in:
Palash Tyagi 2025-05-04 00:47:13 +01:00
parent 8ba39f8e87
commit 33d021072e

View File

@ -39,14 +39,15 @@ jobs:
- 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: Run unit tests and generate coverage - name: Run doctests
run: | run: cargo test --doc --all-features --workspace --release
echo "Running doctests"
cargo test --doc --all-features --workspace --release - name: Run unit tests with code coverage
echo "Running tests with code coverage" run: cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info
cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info
echo "Generating documentation (no-deps)" - name: Test docs generation
cargo doc --no-deps --release run: cargo doc --no-deps --release
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
with: with: