Refactor repository: sub-crates under crates directory #1146
Workflow file for this run
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: pytest | |
on: | |
pull_request: | |
branches: [ master ] | |
push: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
pytest: | |
name: python${{ matrix.python-version }}-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
max-parallel: 16 | |
matrix: | |
python-version: ["3.11", "3.12"] | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
- name: Log active toolchain | |
run: rustup show | |
- name: Build the Python binding | |
working-directory: python | |
run: | | |
uv run maturin develop --release | |
shell: bash | |
- name: Run linter and formatter | |
working-directory: python | |
run: | | |
uv run ruff check | |
uv run ruff format --check | |
- name: Test Python | |
working-directory: python | |
run: | | |
uv run pytest | |
shell: bash | |
env: | |
RUST_BACKTRACE: 1 |