From 6b8a72856605a1f3c40f6935de0354e1d0c94025 Mon Sep 17 00:00:00 2001 From: David White Date: Fri, 23 Oct 2026 08:10:23 +0100 Subject: [PATCH] Run the pull request checks in CI Every pull request and every push to master runs ruff check, ruff format --check, ty check, pytest and uv build on Python 3.13 and 3.14, against the locked dependencies. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ CONTRIBUTING.md | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) 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..41050f3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + pull_request: + push: + branches: [master] + +permissions: + contents: read + +jobs: + check: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python: ["3.13", "3.14"] + steps: + - uses: actions/checkout@v7 + - uses: astral-sh/setup-uv@v10.3.2 + with: + python-version: ${{ matrix.python }} + enable-cache: true + - run: uv sync --all-extras --locked + - run: uv run ruff check + - run: uv run ruff format --check + - run: uv run ty check + - run: uv run pytest + - run: uv build diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 35973da..14e54d1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,7 +17,7 @@ uv run ty check uv run pytest ``` -All four must be clean. +All four must be clean. CI runs them, and `uv build`, on Python 3.13 and 3.14 for every pull request. ## Pull requests