Skip to content

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

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

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

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: "1"
FORCE_COLOR: "3"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
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.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- uses: yezz123/setup-uv@v4
- name: Run CPython tests
if: ${{ !startsWith(matrix.python-version, 'pypy') }}
run: uvx nox -s tests
- name: Run PyPy tests
if: ${{ startsWith(matrix.python-version, 'pypy') }}
run: nox -s tests -- k "not scipy"