Split into different jobs
Some checks failed
CI / Formatting (push) Failing after 39s
CI / Clippy (push) Failing after 37s
CI / Check (push) Failing after 37s
CI / Build (push) Failing after 0s

Although some will still fail
This commit is contained in:
Michael Bradley 2025-02-23 03:02:49 -05:00
parent 33b8efa5b5
commit b1eb4be4d0
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8

View file

@ -1,26 +1,58 @@
---
on: [push, pull_request]
name: CI
jobs:
build:
formatting:
name: Formatting
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Check Rust formatting
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Run Clippy
run: cargo clippy -- -D warnings
check:
name: Check
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
- name: Check for Rust compilation errors
run: cargo check
build:
name: Build
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13.2
cache: pip
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Set up Rust
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust dependencies
run: cargo fetch
- name: Check formatting
run: cargo fmt --check
- name: Build
- name: Build Rust code
run: maturin develop
- name: Python tests
run: pytest tests/*.py
- name: Rust tests
run: cargo test