Skip to content

feat: migrate to nox, run tests in parallel, revamp test infra #88

feat: migrate to nox, run tests in parallel, revamp test infra

feat: migrate to nox, run tests in parallel, revamp test infra #88

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
workflow_dispatch:
schedule:
- cron: '0 4 * * *'
env:
PIP_DISABLE_PIP_VERSION_CHECK: "3"
FORCE_COLOR: "3"
jobs:
test:
name: Test / ${{ matrix.platform }} / Python ${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-13, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
# TODO: bring this back later
exclude:
- platform: windows-latest
python-version: 'pypy-3.10'
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.1
with:
python-version: ${{ matrix.python-version }}
- uses: yezz123/setup-uv@v4
- name: Run tests
run: uvx nox -s tests
- name: Install SciPy prerequisites for Linux with PyPy
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.python-version, 'pypy')
run: sudo apt-get install libopenblas-dev
- name: Run tests with SciPy
run: uvx nox -s tests-scipy