Split into different jobs
Although some will still fail
This commit is contained in:
parent
33b8efa5b5
commit
b1eb4be4d0
1 changed files with 46 additions and 14 deletions
|
@ -1,26 +1,58 @@
|
||||||
|
---
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
name: CI
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
formatting:
|
||||||
|
name: Formatting
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.13.2
|
python-version: 3.13.2
|
||||||
cache: pip
|
|
||||||
- name: Install Python dependencies
|
|
||||||
run: pip install -r requirements.txt
|
run: pip install -r requirements.txt
|
||||||
- name: Set up Rust
|
- name: Build Rust code
|
||||||
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
|
|
||||||
run: maturin develop
|
run: maturin develop
|
||||||
- name: Python tests
|
|
||||||
run: pytest tests/*.py
|
|
||||||
- name: Rust tests
|
|
||||||
run: cargo test
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue