Bump pyo3 from 0.22.2 to 0.23.2 in /cattus-engine #12
This file contains 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: Development CI | |
on: push | |
permissions: | |
contents: read | |
jobs: | |
cattus: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
checks: write | |
steps: | |
# Setup | |
- name: Get repo | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Rust toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: 1.77.0 | |
components: clippy | |
cache-workspaces: cattus-engine | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install -e . | |
working-directory: cattus-train | |
# Build | |
- name: Build Rust | |
run: cargo build | |
working-directory: cattus-engine | |
# Linters | |
- name: Rust Clippy linter | |
uses: auguwu/[email protected] | |
with: | |
working-directory: cattus-engine | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Python Ruff linter | |
uses: chartboost/ruff-action@v1 | |
with: | |
args: check cattus-train | |
# Tests | |
- name: Rust tests | |
run: cargo test | |
working-directory: cattus-engine | |
- name: Python tests | |
run: pytest -s | |
working-directory: cattus-train |