File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright © Michal Čihař <michal@weblate.org>
2+ #
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ name : pre-commit setup
6+ description : Prepare pre-commit environment
7+
8+ runs :
9+ using : composite
10+ steps :
11+ - uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
12+ with :
13+ path : |
14+ ~/.cache/prek
15+ ~/.cache/kingfisher
16+ key : ${{ runner.os }}-${{ runner.arch }}-prek-${{ hashFiles('.pre-commit-config.yaml') }}
17+ restore-keys : |
18+ ${{ runner.os }}-${{ runner.arch }}-prek-
19+ - name : Setup Python
20+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
21+ with :
22+ python-version : ' 3.14'
23+ - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
24+ with :
25+ version : 0.11.11
Original file line number Diff line number Diff line change @@ -18,28 +18,13 @@ permissions:
1818
1919jobs :
2020 pre-commit :
21- runs-on : ubuntu-24.04
21+ runs-on : ubuntu-24.04-arm
2222
2323 steps :
24- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525 with :
2626 persist-credentials : false
27- - uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
28- with :
29- path : |
30- ~/.cache/prek
31- ~/.cache/kingfisher
32- key : ${{ runner.os }}-prek-${{ hashFiles('.pre-commit-config.yaml') }}
33- restore-keys : |
34- ${{ runner.os }}-prek-
35- - name : Setup Python
36- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
37- with :
38- python-version : ' 3.14'
39- - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
40- with :
41- version : 0.11.11
42- enable-cache : false
27+ - uses : ./.github/actions/pre-commit-setup
4328 - name : detect method
4429 id : detect
4530 run : |
You can’t perform that action at this time.
0 commit comments