feat(infer): kanalizer-rsのMSRVを1.84に (#127) #386
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: Test Infer | |
| on: | |
| push: | |
| pull_request: | |
| paths: | |
| - .github/workflows/test_infer.yml | |
| - infer/** | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: infer | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "infer" | |
| - name: Run Rust lint | |
| run: | | |
| rustup component add clippy rustfmt # TODO: dtolnay/rust-toolchainを使う | |
| cargo clippy --all-targets --all-features -- -D warnings | |
| cargo fmt --all -- --check | |
| - name: Run Rust tests | |
| run: cargo test | |
| - name: Run Python lint | |
| working-directory: infer/crates/kanalizer-py | |
| run: | | |
| uv run ruff check | |
| uv run ruff format --diff | |
| - name: Run Python lint for tools | |
| working-directory: infer/tools | |
| run: | | |
| uv run ruff check | |
| uv run ruff format --diff | |
| uv run pyright | |
| - name: Run Python tests | |
| working-directory: infer/crates/kanalizer-py | |
| run: | | |
| uv run maturin develop | |
| uv run pytest |