Move Python tests into their own job
Some checks failed
CI / Build (and tests, for now) (push) Successful in 1m37s
CI / Python tests (push) Failing after 44s
CI / Rust tests (push) Successful in 1m23s

This commit is contained in:
Michael Bradley 2025-02-23 09:03:44 -05:00
parent b70b9a716a
commit b390cd81c7
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8

View file

@ -42,7 +42,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
- name: Set up the Python environment
# For most Python CI stuff this isn't needed, but maturin specifically doesn't like to function without a venv
run: |
@ -52,14 +51,35 @@ jobs:
- name: Build Rust code
run: |
source venv/bin/activate
maturin develop
maturin build
- name: Save built wheel
uses: forgejo/upload-artifact@v4
with:
name: pyority_queue.whl
path: target/wheels/*.whl
compression-level: 0
python-test:
name: Python tests
runs-on: ubuntu-22.04
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up the Python toolchain
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Set up the Python environment
run: pip install -r requirements.txt
- name: Retrieve built wheel
uses: forgejo/download-artifact@v4
- name: Install built wheel
run: pip install pyority_queue.whl
- name: Run Python tests
run: |
source venv/bin/activate
pytest tests/*.py
run: pytest tests/*.py
rust-test:
name: Rust test
name: Rust tests
runs-on: ubuntu-22.04
steps:
- name: Checkout the code