pyority_queue/.forgejo/workflows/build.yaml
Michael Bradley 35d0c0b4a2
Some checks failed
CI / Formatting (push) Successful in 35s
CI / Clippy (push) Failing after 56s
CI / Build (push) Failing after 7s
CI / Test Rust (push) Failing after 59s
Try installing pip for action
2025-02-23 03:42:00 -05:00

61 lines
1.5 KiB
YAML

---
on: [push, pull_request]
name: CI
jobs:
formatting:
name: Formatting
runs-on: docker
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: docker
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: cargo clippy -- -D warnings
build:
name: Build
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python toolchain
uses: actions/setup-python@v5
with:
cache: pip
- name: Install pip
run: python3 -m ensurepip
- name: Set up Python environment
run: python3 -m pip install -r requirements.txt
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build Rust code
run: maturin develop
test-rust:
name: Test Rust
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Run Rust tests
run: cargo test