Fix maturin caching #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Tests | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| cache: true | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| - name: Run Rust tests | |
| run: CARGO_LOG=cargo::core::compiler::fingerprint=trace cargo test | |
| - name: Run clippy linting | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Check Rust formatting | |
| run: cargo fmt --all -- --check | |
| - name: Install procstar | |
| run: CARGO_LOG=cargo::core::compiler::fingerprint=trace MATURIN_PROFILE=dev uv pip install -vv -e . | |
| - name: Run Python tests | |
| run: uv run pytest |