mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-05-19 07:34:45 +00:00
Add input python-version
This commit is contained in:
parent
420915557e
commit
f1152212f8
7 changed files with 44 additions and 8 deletions
14
README.md
14
README.md
|
@ -14,6 +14,7 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
|
|||
- [Install the latest version (default)](#install-the-latest-version-default)
|
||||
- [Install a specific version](#install-a-specific-version)
|
||||
- [Install a version by supplying a semver range](#install-a-version-by-supplying-a-semver-range)
|
||||
- [Python version](#python-version)
|
||||
- [Validate checksum](#validate-checksum)
|
||||
- [Enable Caching](#enable-caching)
|
||||
- [Cache dependency glob](#cache-dependency-glob)
|
||||
|
@ -75,6 +76,19 @@ to install the latest version that satisfies the range.
|
|||
version: "0.4.x"
|
||||
```
|
||||
|
||||
### Python version
|
||||
|
||||
You can use the input `python-version` to set the environment variable `UV_PYTHON` for the rest
|
||||
of your workflow.
|
||||
This will override any python version specifications in `pyproject.toml` and `.python-version`
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv and set the python version to 3.12
|
||||
uses: astral-sh/setup-uv@v3
|
||||
with:
|
||||
python-version: "3.12"
|
||||
```
|
||||
|
||||
### Validate checksum
|
||||
|
||||
You can specify a checksum to validate the downloaded executable. Checksums up to the default version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue