Skip to content

Commit

Permalink
Add faq on how to install python (astral-sh#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger authored Aug 28, 2024
1 parent e9305af commit 4e90b42
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 4e90b42

Please sign in to comment.