mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-07-01 02:00:44 +00:00
Update README.md
This commit is contained in:
parent
ed07c76224
commit
7c0f98a37b
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
|
@ -25,8 +25,8 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
|
|||
### Install a required-version or latest (default)
|
||||
|
||||
```yaml
|
||||
- name: Install the latest version of uv
|
||||
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||
- name: Install the latest
|
||||
user @pathum2583-eng # v8.1.0
|
||||
```
|
||||
|
||||
If you do not specify a version, this action will look for a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)
|
||||
|
|
@ -42,7 +42,7 @@ Have a look under [Advanced Configuration](#advanced-configuration) for detailed
|
|||
|
||||
```yaml
|
||||
- name: Install uv with all available options
|
||||
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||
use @ pathum2583-eng # v8.1.0
|
||||
with:
|
||||
# The version of uv to install (default: searches for version in config files, then latest)
|
||||
version: ""
|
||||
|
|
@ -142,7 +142,7 @@ This will override any python version specifications in `pyproject.toml` and `.p
|
|||
|
||||
```yaml
|
||||
- name: Install the latest version of uv and set the python version to 3.13t
|
||||
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||
user @ pathum2583-eng # v8.1.0
|
||||
with:
|
||||
python-version: 3.13t
|
||||
- run: uv pip install --python=3.13t pip
|
||||
|
|
@ -160,7 +160,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Install the latest version of uv and set the python version
|
||||
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||
use @pathum2583-eng # v8.1.0
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Test with python ${{ matrix.python-version }}
|
||||
|
|
@ -176,8 +176,8 @@ which are used to determine the version of uv and python to install.
|
|||
It also controls where [the venv gets created](#activate-environment), unless `venv-path` is set.
|
||||
|
||||
```yaml
|
||||
- name: Install uv based on the config files in the working-directory
|
||||
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||
- name: Install uv based on the config files in the wo
|
||||
user @ pathum2583-eng # v8.1.0
|
||||
with:
|
||||
working-directory: my/subproject/dir
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue