ci: added correct uv setup #21
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [blacksmith-4vcpu-ubuntu-2404, blacksmith-4vcpu-macos-sequoia, blacksmith-4vcpu-windows-2025] | |
| defaults: | |
| run: | |
| working-directory: workspaces/rust/klaw-dbase | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "0.9.17" | |
| python-version: "3.13" | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: workspaces/rust/klaw-dbase | |
| - name: Sync dependencies | |
| run: uv sync --package klaw-dbase | |
| - name: Build extension | |
| run: uv run --package klaw-dbase maturin develop --release | |
| - name: Run Python tests | |
| run: uv run --package klaw-dbase pytest -v | |
| - name: Run Rust tests | |
| run: cargo test --release |