@@ -26,14 +26,15 @@ jobs:
2626 # Typecheck both Python 3.10 and 3.13. We've had issues due to not checking against both.
2727 python-version : ["3.10", "3.13"]
2828 env :
29- UV_PYTHON : ${{ matrix.python-version }}
3029 PYRIGHT_PYTHON : ${{ matrix.python-version }}
3130 steps :
3231 - uses : actions/checkout@v4
3332
3433 - uses : astral-sh/setup-uv@v5
3534 with :
35+ python-version : ${{ matrix.python-version }}
3636 enable-cache : true
37+ cache-suffix : lint
3738
3839 - name : Install dependencies
3940 run : uv sync --all-extras --all-packages --group lint
5657 - uses : astral-sh/setup-uv@v5
5758 with :
5859 enable-cache : true
60+ cache-suffix : mypy
5961
6062 - name : Install dependencies
6163 run : uv sync --no-dev --group lint
7072 - uses : astral-sh/setup-uv@v5
7173 with :
7274 enable-cache : true
75+ cache-suffix : docs
7376
7477 - run : uv sync --group docs
7578
@@ -107,6 +110,7 @@ jobs:
107110 - uses : astral-sh/setup-uv@v5
108111 with :
109112 enable-cache : true
113+ cache-suffix : live
110114
111115 - uses : pydantic/ollama-action@v3
112116 with :
@@ -151,16 +155,17 @@ jobs:
151155 - name : all-extras
152156 command : " --all-extras"
153157 env :
154- UV_PYTHON : ${{ matrix.python-version }}
155158 CI : true
156159 COVERAGE_PROCESS_START : ./pyproject.toml
157160 steps :
158161 - uses : actions/checkout@v4
159162
160163 - uses : astral-sh/setup-uv@v5
161164 with :
165+ python-version : ${{ matrix.python-version }}
162166 enable-cache : true
163167 prune-cache : false
168+ cache-suffix : ${{ matrix.install.name }}
164169
165170 - uses : denoland/setup-deno@v2
166171 with :
@@ -199,16 +204,17 @@ jobs:
199204 matrix :
200205 python-version : ["3.10", "3.11", "3.12", "3.13"]
201206 env :
202- UV_PYTHON : ${{ matrix.python-version }}
203207 CI : true
204208 COVERAGE_PROCESS_START : ./pyproject.toml
205209 steps :
206210 - uses : actions/checkout@v4
207211
208212 - uses : astral-sh/setup-uv@v5
209213 with :
214+ python-version : ${{ matrix.python-version }}
210215 enable-cache : true
211216 prune-cache : false
217+ cache-suffix : lowest-versions
212218
213219 - uses : denoland/setup-deno@v2
214220 with :
@@ -250,15 +256,16 @@ jobs:
250256 matrix :
251257 python-version : ["3.11", "3.12", "3.13"]
252258 env :
253- UV_PYTHON : ${{ matrix.python-version }}
254259 CI : true
255260 steps :
256261 - uses : actions/checkout@v4
257262
258263 - uses : astral-sh/setup-uv@v5
259264 with :
265+ python-version : ${{ matrix.python-version }}
260266 enable-cache : true
261267 prune-cache : false
268+ cache-suffix : all-extras
262269
263270 - name : cache HuggingFace models
264271 uses : actions/cache@v4
@@ -288,6 +295,7 @@ jobs:
288295 - uses : astral-sh/setup-uv@v5
289296 with :
290297 enable-cache : true
298+ cache-suffix : dev
291299
292300 - run : uv sync --group dev
293301 - run : uv run coverage combine
@@ -343,6 +351,7 @@ jobs:
343351 - uses : astral-sh/setup-uv@v5
344352 with :
345353 enable-cache : true
354+ cache-suffix : docs-upload
346355
347356 - uses : actions/download-artifact@v4
348357 with :
@@ -384,6 +393,7 @@ jobs:
384393 - uses : astral-sh/setup-uv@v5
385394 with :
386395 enable-cache : true
396+ cache-suffix : deploy-docs-preview
387397
388398 - uses : actions/download-artifact@v4
389399 with :
@@ -431,6 +441,7 @@ jobs:
431441 - uses : astral-sh/setup-uv@v5
432442 with :
433443 enable-cache : true
444+ cache-suffix : release
434445
435446 - run : uv build --all-packages
436447
0 commit comments