From d174a24c07041141748ff40b1807fb773147fbb5 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Sun, 22 Dec 2024 12:13:40 +0100 Subject: [PATCH] Align use of `actions/setup-python` with uv docu (#207) Closes: #197 --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b7e88f4..9de6dc6 100644 --- a/README.md +++ b/README.md @@ -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