Uncomment doc-tests and documentation generation steps in CI workflow

This commit is contained in:
Palash Tyagi 2025-04-21 01:52:06 +01:00
parent 2642af5601
commit adcf0d0a0b
2 changed files with 4 additions and 26 deletions

View File

@ -1,22 +0,0 @@
name: run-docs-and-doc-tests
on:
pull_request:
branches:
- main
jobs:
run-docs-and-doc-tests:
name: run-docs-and-doc-tests
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Run doc-tests
run: cargo test --doc --all-features --workspace
- name: Test docs generation
run: cargo doc --no-deps

View File

@ -20,10 +20,10 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
# - name: Run doc-tests
# run: cargo test --doc --all-features --workspace
# - name: Test docs generation
# run: cargo doc --no-deps
- name: Run doc-tests
run: cargo test --doc --all-features --workspace
- name: Test docs generation
run: cargo doc --no-deps
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with: