Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/autofix.yaml
Original file line number Diff line number Diff line change
@@ -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() }}
10 changes: 0 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,13 @@ 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
if: always()
needs:
- get-environments
- test
- lint
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
Expand Down
Loading