Skip to content

Commit d174a24

Browse files
authored
Align use of actions/setup-python with uv docu (#207)
Closes: #197
1 parent 12c852e commit d174a24

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,11 @@ by name (`uv`).
334334

335335
### Do I still need `actions/setup-python` alongside `setup-uv`?
336336

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
339338
relying on `actions/setup-python`.
340339

340+
Using `actions/setup-python` can be faster, because GitHub caches the Python versions alongside the runner.
341+
341342
For example:
342343

343344
```yaml
@@ -348,7 +349,7 @@ For example:
348349
with:
349350
enable-cache: true
350351
- name: Test
351-
run: uv run --frozen pytest
352+
run: uv run --frozen pytest # Uses the Python version automatically installed by uv
352353
```
353354

354355
To install a specific version of Python, use

0 commit comments

Comments
 (0)