pyority_queue/.forgejo/workflows/build.yaml
Michael Bradley 459dc4b588
Some checks failed
CI / Formatting (push) Successful in 39s
CI / Clippy (push) Successful in 37s
CI / Build (and tests, for now) (push) Failing after 59s
Try using new runner image
2025-02-23 07:30:13 -05:00

53 lines
1.3 KiB
YAML

---
on: [push]
name: CI
jobs:
formatting:
name: Formatting
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check Rust formatting
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run Clippy
run: "echo 'pretend i ran'" # cargo clippy -- -D warnings
build:
name: Build (and tests, for now)
runs-on: ubuntu-22.04
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Set up the Python toolchain
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
- name: Set up the Python environment
run: pip install -r requirements.txt
- name: Build Rust code
run: maturin develop
- name: Run Python tests
run: pytest tests/*.py
- name: Run Rust tests
run: cargo test