Add lint and build actions #1

Manually merged
MichaelBradley merged 30 commits from actions into main 2025-02-23 06:10:41 -05:00
Showing only changes of commit 4fb890aa37 - Show all commits

View file

@ -0,0 +1,23 @@
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
run: pip install -r requirements.txt
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- 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