Files
polyscribe/docs/ci.md

1.3 KiB

CI checklist and job outline

Checklist to keep docs and code healthy in CI

  • Build: cargo build --all-targets --locked
  • Tests: cargo test --all --locked
  • Lints: cargo clippy --all-targets -- -D warnings
  • Optional: check README and docs snippets (basic smoke run of examples scripts)
    • bash examples/update_models.sh (can be skipped offline)
    • bash examples/transcribe_file.sh (use a tiny sample file if available)

Example GitHub Actions job (outline)

  • name: Rust runs-on: ubuntu-latest steps:
    • uses: actions/checkout@v4
    • uses: dtolnay/rust-toolchain@stable
    • name: Print resolved whisper-rs rev run: | echo "Resolved whisper-rs revision:" &&
      awk '/name = "whisper-rs"/{f=1} f&&/source = "git+.*whisper-rs#/{match($0,/#([0-9a-f]{7,40})"/,m); if(m[1]){print m[1]; exit}}' Cargo.lock
    • name: Build run: cargo build --all-targets --locked
    • name: Test run: cargo test --all --locked
    • name: Clippy run: cargo clippy --all-targets -- -D warnings

Notes

  • For GPU features, set up appropriate runners and add --features gpu-cuda|gpu-hip|gpu-vulkan where applicable.
  • For docs-only changes, jobs still build/test to ensure doctests and examples compile when enabled.
  • Mark the CI job named ci as a required status check for the default branch in repository branch protection settings.