File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -334,10 +334,11 @@ by name (`uv`).
334
334
335
335
# ## Do I still need `actions/setup-python` alongside `setup-uv`?
336
336
337
- No. This action is modelled as a drop-in replacement for `actions/setup-python` when using uv. With
338
- ` setup-uv` , you can install a specific version of Python using `uv python install` rather than
337
+ With `setup-uv`, you can install a specific version of Python using `uv python install` rather than
339
338
relying on `actions/setup-python`.
340
339
340
+ Using `actions/setup-python` can be faster, because GitHub caches the Python versions alongside the runner.
341
+
341
342
For example :
342
343
343
344
` ` ` yaml
@@ -348,7 +349,7 @@ For example:
348
349
with:
349
350
enable-cache: true
350
351
- name: Test
351
- run: uv run --frozen pytest
352
+ run: uv run --frozen pytest # Uses the Python version automatically installed by uv
352
353
` ` `
353
354
354
355
To install a specific version of Python, use
You can’t perform that action at this time.
0 commit comments