@@ -12,54 +12,44 @@ jobs:
12
12
lint :
13
13
runs-on : ubuntu-latest
14
14
15
- env :
16
- UV_CACHE_DIR : /tmp/.uv-cache
17
-
18
15
steps :
19
16
- uses : actions/checkout@v4
20
17
21
- - name : Set up uv
22
- run : curl -LsSf https://astral.sh/uv/0.4.30/install.sh | sh
18
+ - name : Install uv
19
+ uses : astral-sh/setup-uv@v3
20
+ with :
21
+ version : " 0.5.x"
22
+ enable-cache : true
23
+ cache-dependency-glob : " uv.lock"
23
24
24
25
- name : Set up Python
25
26
uses : actions/setup-python@v5
26
27
with :
27
28
python-version-file : " pyproject.toml"
28
29
29
- - name : Restore uv cache
30
- uses : actions/cache@v4
31
- with :
32
- path : /tmp/.uv-cache
33
- key : uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
34
- restore-keys : |
35
- uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
36
- uv-${{ runner.os }}
37
-
38
30
- name : Install dependencies
39
31
run : uv sync --all-extras --dev
40
32
41
33
- name : Run mypy
42
34
run : uv run mypy .
43
35
if : always()
44
36
45
- - name : Minimize uv cache
46
- run : uv cache prune --ci
47
-
48
37
test :
49
38
runs-on : ubuntu-latest
50
39
strategy :
51
40
matrix :
52
41
python-version : ["3.11", "3.12", "3.13"]
53
42
fail-fast : false
54
43
55
- env :
56
- UV_CACHE_DIR : /tmp/.uv-cache
57
-
58
44
steps :
59
45
- uses : actions/checkout@v4
60
46
61
- - name : Set up uv
62
- run : curl -LsSf https://astral.sh/uv/0.4.30/install.sh | sh
47
+ - name : Install uv
48
+ uses : astral-sh/setup-uv@v3
49
+ with :
50
+ version : " 0.5.x"
51
+ enable-cache : true
52
+ cache-dependency-glob : " uv.lock"
63
53
64
54
- name : Set up (release) Python ${{ matrix.python-version }}
65
55
uses : actions/setup-python@v5
73
63
with :
74
64
python-version : ${{ matrix.python-version }}
75
65
76
- - name : Restore uv cache
77
- uses : actions/cache@v4
78
- with :
79
- path : /tmp/.uv-cache
80
- key : uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
81
- restore-keys : |
82
- uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
83
- uv-${{ runner.os }}
84
-
85
66
- name : Install dependencies
86
67
run : |
87
68
uv venv
98
79
if-no-files-found : error
99
80
include-hidden-files : true
100
81
101
- - name : Minimize uv cache
102
- run : uv cache prune --ci
103
-
104
82
combine-cov :
105
83
runs-on : ubuntu-latest
106
84
needs : test
0 commit comments