Align use of actions/setup-python with uv docu (#207)

Closes: #197
This commit is contained in:
Kevin Stillhammer 2024-12-22 12:13:40 +01:00 committed by GitHub
parent 12c852e6ba
commit d174a24c07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -334,10 +334,11 @@ by name (`uv`).
### Do I still need `actions/setup-python` alongside `setup-uv`?
No. This action is modelled as a drop-in replacement for `actions/setup-python` when using uv. With
`setup-uv`, you can install a specific version of Python using `uv python install` rather than
With `setup-uv`, you can install a specific version of Python using `uv python install` rather than
relying on `actions/setup-python`.
Using `actions/setup-python` can be faster, because GitHub caches the Python versions alongside the runner.
For example:
```yaml
@ -348,7 +349,7 @@ For example:
with:
enable-cache: true
- name: Test
run: uv run --frozen pytest
run: uv run --frozen pytest # Uses the Python version automatically installed by uv
```
To install a specific version of Python, use