pyority_queue/.forgejo/workflows/build.yaml
Michael Bradley ff6cc64785
Some checks failed
CI / Formatting (push) Successful in 37s
CI / Clippy (push) Failing after 58s
CI / Build (push) Successful in 1m21s
Don't re-run CI on PR
2025-02-23 05:23:34 -05:00

56 lines
1.4 KiB
YAML

---
on: [push]
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: Set up Python environment
run: |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build Rust code
run: |
source venv/bin/activate
maturin develop