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 aeff99b71d - Show all commits

View file

@ -31,7 +31,7 @@ jobs:
run: cargo clippy -- -D warnings
build:
name: Build (and test, for now)
name: Build
runs-on: docker
steps:
- name: Checkout
@ -55,13 +55,17 @@ jobs:
run: |
source venv/bin/activate
maturin develop
# TODO: Moving tests to another job feels like better form
# FIXME: The runner's Python version is 3.9, which breaks one some of the type syntax found in the tests
# - name: Run Python tests
# run: |
# source venv/bin/activate
# pytest tests/*.py
- name: Run Rust tests
run: |
source venv/bin/activate
cargo test
# FIXME: Linking with `cc` fails on the runner because it can't find the python3.9 library
# - name: Run Rust tests
# run: |
# source venv/bin/activate
# cargo test