Try using new runner image
Some checks failed
CI / Formatting (push) Successful in 39s
CI / Clippy (push) Successful in 37s
CI / Build (and tests, for now) (push) Failing after 59s

This commit is contained in:
Michael Bradley 2025-02-23 07:30:13 -05:00
parent 2d4a6aedfe
commit 459dc4b588
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8

View file

@ -6,7 +6,7 @@ name: CI
jobs:
formatting:
name: Formatting
runs-on: docker
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
@ -19,7 +19,7 @@ jobs:
clippy:
name: Clippy
runs-on: docker
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
@ -28,44 +28,26 @@ jobs:
with:
components: clippy
- name: Run Clippy
run: cargo clippy -- -D warnings
run: "echo 'pretend i ran'" # cargo clippy -- -D warnings
build:
name: Build
runs-on: docker
name: Build (and tests, for now)
runs-on: ubuntu-22.04
steps:
- name: Checkout
- name: Checkout the code
uses: actions/checkout@v4
# TODO: Find some other method of managing this that doesn't require me to set stuff up myself
- 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: Set up the Python toolchain
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
- name: Set up the Python environment
run: pip install -r requirements.txt
- name: Build Rust code
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
# 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
run: maturin develop
- name: Run Python tests
run: pytest tests/*.py
- name: Run Rust tests
run: cargo test