File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,33 +7,13 @@ on: [pull_request]
77
88jobs :
99 pre-commit :
10- name : 🏃🏼 Pre-commit on ${{ matrix.os }} / Python ${{ matrix.python-version }}
11- runs-on : ${{ matrix.os }}
12- strategy :
13- matrix :
14- os : [ubuntu-latest, windows-latest]
15- python-version : ["3.14"]
10+ name : 🏃🏼 Pre-commit
11+ runs-on : ubuntu-latest
1612 steps :
1713 - name : Checkout Code
1814 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1915 with :
2016 fetch-depth : 0
2117 persist-credentials : false
22- - name : Set up Python
23- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
24- with :
25- python-version : ${{ matrix.python-version }}
26- architecture : " x64"
27- - name : Install dependencies
28- run : |
29- python -m pip install --upgrade pip
30- pip install pre-commit
31- - name : Set PY
32- run : echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
33- - name : Cache Pre-commit Hooks
34- uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
35- with :
36- path : ~/.cache/pre-commit
37- key : pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
38- - name : Run pre-commit hooks
39- run : pre-commit run --all-files --show-diff-on-failure --color always
18+ - name : Run prek-action
19+ uses : j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
You can’t perform that action at this time.
0 commit comments