From f0d8d1c5f0886cd642fe9c2fe44a96b8e86b3934 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Wed, 28 Aug 2024 13:25:20 +0200 Subject: [PATCH] Add faq on how to install python --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 2066ca7..7f73d41 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,17 @@ A simple example workflow could look like this: run: uv run --frozen pytest ``` +If you want to have a specific python version installed you can use the command [`uv python install`](https://docs.astral.sh/uv/guides/install-python/): + +```yaml +- name: Install the latest version of uv + uses: eifinger/setup-uv@v1 + with: + enable-cache: true +- name: Install Python 3.12 + run: uv python install 3.12 +``` + ### What is the default version? By default this action installs the version defined as `default` in `action.yml`.