From 9162ba7ae0600f8d14e57c2175980d79569c2d48 Mon Sep 17 00:00:00 2001 From: Lars Bogner Date: Thu, 23 Jul 2026 14:38:46 +0200 Subject: [PATCH] Split CI lint stage into parallel jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ruff check, ruff format check, ty check, and pytest now run as four independent jobs instead of one sequential lint job gating test — faster wall-clock CI since none of these checks depend on each other. build still waits on all four before bumping/publishing. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/ci.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3612b84..c2c0765 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,8 +7,8 @@ name: CI branches: [master] jobs: - lint: - name: Lint & type check + ruff-check: + name: Lint (ruff check) runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -17,12 +17,31 @@ jobs: enable-cache: true - run: uv sync --extra cpu --extra dev - run: uv run ruff check . + + ruff-format: + name: Format (ruff format) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - run: uv sync --extra cpu --extra dev - run: uv run ruff format --check . + + type-check: + name: Type check (ty) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - run: uv sync --extra cpu --extra dev - run: uv run ty check . test: name: Tests - needs: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -34,7 +53,7 @@ jobs: build: name: Bump version, build & publish wheel - needs: [lint, test] + needs: [ruff-check, ruff-format, type-check, test] if: github.event_name == 'push' && github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: