File tree 1 file changed +10
-16
lines changed
1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
lint :
12
- env :
13
- UV_CACHE_DIR : /tmp/.uv-cache
14
-
15
12
runs-on : ubuntu-latest
16
13
steps :
17
- - name : Restore uv cache
18
- uses : actions/cache@v4
14
+ - uses : actions/checkout@v4
15
+ - name : Install uv
16
+ uses : astral-sh/setup-uv@v3
19
17
with :
20
- path : /tmp/.uv-cache
21
- key : uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
22
- restore-keys : |
23
- uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
24
- uv-${{ runner.os }}
18
+ version : " 0.4.24"
19
+ enable-cache : true
20
+
25
21
- name : pre-commit cache key
26
22
run : echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
27
23
- uses : actions/cache@v4
28
24
with :
29
25
path : ~/.cache/pre-commit
30
26
key : pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
31
- - uses : actions/checkout@v4
32
- - name : Set up uv
33
- run : curl -LsSf https://astral.sh/uv/0.4.0/install.sh | sh
34
- - name : Set up Python
27
+
28
+ - name : Install Python
35
29
run : uv python install
30
+
36
31
- name : install dependencies
37
32
run : uv sync
33
+
38
34
- name : pre-commit
39
35
run : uv run pre-commit run --all-files
40
- - name : Minimize uv cache
41
- run : uv cache prune --ci
42
36
43
37
deploy :
44
38
needs : [lint]
You can’t perform that action at this time.
0 commit comments