From 1f2d6b8650b8498daf0b8b2ecd2bcb5c03102d30 Mon Sep 17 00:00:00 2001 From: Martin Holmberg Date: Wed, 10 Jun 2026 23:01:54 +0200 Subject: [PATCH] Add CI workflow with Python 3.10-3.14 matrix Runs pytest on every supported Python on PRs and master pushes so regressions on individual versions are caught at PR time. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..312bf06 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + pull_request: + branches: [master] + push: + branches: [master] + +jobs: + test: + name: Test (Python ${{ matrix.python-version }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + + steps: + - name: Check out repository + uses: actions/checkout@v6 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python-version }} + cache: pip + cache-dependency-path: requirements-dev.txt + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements-dev.txt + + - name: Run tests + run: python -m pytest test/