Skip to content

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

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

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

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
# Not sure why these are needed, probably removed
# - name: Install Scipy prerequisites for Ubuntu
# if: startsWith(matrix.platform, 'ubuntu')
# run: sudo apt-get install libopenblas-dev
# - name: Run tests with scipy
# if: startsWith(matrix.platform, 'ubuntu') || startsWith(matrix.python-version, 'pypy') != true
# run: python -m tox run -e py-scipy
- name: Run tests
run: uvx nox -s tests