pyority_queue/.forgejo/workflows/build.yaml
Michael Bradley 0ec31b8972
Some checks failed
/ build (push) Failing after 10s
Try to fix Python dependency installation
2025-02-23 02:39:30 -05:00

26 lines
735 B
YAML

on: [push, pull_request]
jobs:
build:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install Python dependencies
with:
python-version: "3.13"
cache: "pip"
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
run: maturin develop
- name: Python tests
run: pytest tests/*.py
- name: Rust tests
run: cargo test