Skip to content

feat(ci): add pytest and pyright tests #2

feat(ci): add pytest and pyright tests

feat(ci): add pytest and pyright tests #2

Workflow file for this run

name: Python Unit Tests and Type Checks
on: ["push", "pull_request"]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "pypy3.10"]
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