Merge pull request #18 from robust-python/release/0.6.0 #19
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: Test Rust Code | |
| on: | |
| pull_request: | |
| paths: | |
| - "rust/**/*.rs" | |
| - "Cargo.toml" | |
| - "noxfile.py" | |
| - ".github/workflows/test-rust.yml" | |
| push: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - "rust/**/*.rs" | |
| - "Cargo.toml" | |
| - "noxfile.py" | |
| - ".github/workflows/test-rust.yml" | |
| workflow_dispatch: | |
| jobs: | |
| test-rust: | |
| name: Run Rust Tests on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - { os: "ubuntu-latest" } | |
| - { os: "macos-latest" } | |
| - { os: "windows-latest" } | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Rust | |
| run: rustup show | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "rust/" | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: ".github/workflows/.python-version" | |
| - name: Run Rust tests | |
| run: uvx nox -s tests-rust |