Skip to content

ci: add GitHub Actions test workflow (Python 3.9-3.12) #1

ci: add GitHub Actions test workflow (Python 3.9-3.12)

ci: add GitHub Actions test workflow (Python 3.9-3.12) #1

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
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 -e ".[dev]" --quiet || pip install -e . pytest pytest-cov --quiet
- name: Run tests
run: |
pytest tests/ -x --tb=short -q