Skip to content

ci: add GitHub Actions pipeline for test, format, build and PyPI publish #1

ci: add GitHub Actions pipeline for test, format, build and PyPI publish

ci: add GitHub Actions pipeline for test, format, build and PyPI publish #1

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches: [main]
tags: ["v*"]
permissions:
contents: read
jobs:
test:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Run tests
run: pytest