Enhance output messages for code coverage and documentation steps in unit tests workflow

This commit is contained in:
Palash Tyagi 2025-05-04 00:39:23 +01:00
parent 101ee8c1c7
commit cae230783e

View File

@ -39,11 +39,13 @@ 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: Generate code coverage - name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info run: |
- name: Run doc-tests echo "Running tests with code coverage"
run: cargo test --doc --all-features --workspace --release cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info
- name: Test docs generation echo "Running doctests"
run: cargo doc --no-deps --release cargo test --doc --all-features --workspace --release
echo "Generating documentation (no-deps)"
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: