28 lines
761 B
YAML
28 lines
761 B
YAML
# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to
|
|
# help test this project
|
|
|
|
name: Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Python ${{ matrix.python }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
- name: Install test dependencies
|
|
run: python -m pip install --upgrade nox
|
|
- name: Test
|
|
run: python -m nox -s tests-${{ matrix.python }}
|
|
- name: Lint
|
|
run: python -m nox -s lint
|