Skip to content

Commit

Permalink
run Python tests with more python versions and in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Sep 19, 2024
1 parent 3063b0f commit 7b897bd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Install python package
run: |
source .venv/bin/activate
maturin develop
maturin develop --release
- name: Run Python tests
run: |
source .venv/bin/activate
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/run-weekly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,31 @@ jobs:
- name: Build docs
run: cargo doc --features "mpi,strict" --no-deps

run-tests-python:
name: Run Python tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- name: Install uv
run: pip install uv "maturin>=1.7"
- name: Make virtual environment
run: |
uv venv .venv
uv pip install pip pytest
- name: Install python package
run: |
source .venv/bin/activate
maturin develop --release
- name: Run Python tests
run: |
source .venv/bin/activate
python -m pytest python/test

0 comments on commit 7b897bd

Please sign in to comment.