Skip to content

feat(ci): add more test environments #10

feat(ci): add more test environments

feat(ci): add more test environments #10

Workflow file for this run

name: Python Unit Tests and Type Checks
on: ["push", "pull_request"]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.7", "pypy3.8", "pypy3.9", "pypy3.10", "graalpy-22", "graalpy-23", "graalpy-24"]
exclude:
- os: windows-latest
python-version: "graalpy-22"
- os: windows-latest
python-version: "graalpy-23"
- os: windows-latest
python-version: "graalpy-24"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install pytest
- name: Run tests
run: pytest test.py -v
- name: Check types
run: npx pyright