From 03057a93ebbf3e2969f446dd4caaa5809128e878 Mon Sep 17 00:00:00 2001 From: Cameron Lloyd Date: Mon, 15 Jun 2026 15:46:18 +0100 Subject: [PATCH] Add CI workflow to run pytest on push/PR to main Single test job across Python 3.11/3.12 running the existing tests/ suite via pip + requirements.txt. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..4d2f9d4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11", "3.12"] + + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + persist-credentials: false + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Run tests + run: pytest tests/ -v