From 5021a1dc8a6f2f159947ebbe7fda88c3f5bc5509 Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Thu, 12 Nov 2026 15:41:30 +0100 Subject: [PATCH 1/2] ci: add autofix.ci workflow --- .github/workflows/autofix.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/autofix.yaml diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml new file mode 100644 index 000000000..e5614bf9f --- /dev/null +++ b/.github/workflows/autofix.yaml @@ -0,0 +1,32 @@ +# The workflow name is mandated by autofix.ci. +# It needs to be a dedicated workflow, as autofix.ci times out on long runs. +name: autofix.ci + +on: + pull_request: + +env: + FORCE_COLOR: "1" + UV_COMPILE_BYTECODE: "1" + +permissions: + contents: read + +jobs: + lint: + name: Pre-commit checks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + filter: blob:none + persist-credentials: false + - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 + with: + enable-cache: true + - run: uv tool install hatch + - name: Run pre-commit hooks + run: uvx prek run --all-files --show-diff-on-failure --color=always + - uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4 + if: ${{ !cancelled() }} From a59945537b1141f003c633055318333b0bc390e2 Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Thu, 12 Nov 2026 17:03:45 +0100 Subject: [PATCH 2/2] ci: run pre-commit checks only in autofix.ci workflow --- .github/workflows/test.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cb8fe20fd..315a2b0db 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -89,15 +89,6 @@ jobs: fail_ci_if_error: true use_oidc: true - lint: - name: Pre-commit checks - runs-on: ubuntu-latest - steps: - - *clone - - *setup-uv - - run: uv tool install hatch - - run: uvx prek run --all-files --show-diff-on-failure --color=always - # One required check for branch protection, so it does not need updating whenever the matrix changes. check: name: Tests pass in all hatch environments @@ -105,7 +96,6 @@ jobs: needs: - get-environments - test - - lint runs-on: ubuntu-latest steps: - uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0