Skip to content

Commit c7f87aa

Browse files
authored
bump to v6 in README (#382)
1 parent aadfaf0 commit c7f87aa

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

+27-27
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
3737

3838
```yaml
3939
- name: Install the latest version of uv
40-
uses: astral-sh/setup-uv@v5
40+
uses: astral-sh/setup-uv@v6
4141
```
4242
4343
If you do not specify a version, this action will look for a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)
@@ -50,7 +50,7 @@ For an example workflow, see
5050

5151
```yaml
5252
- name: Install the latest version of uv
53-
uses: astral-sh/setup-uv@v5
53+
uses: astral-sh/setup-uv@v6
5454
with:
5555
version: "latest"
5656
```
@@ -59,7 +59,7 @@ For an example workflow, see
5959

6060
```yaml
6161
- name: Install a specific version of uv
62-
uses: astral-sh/setup-uv@v5
62+
uses: astral-sh/setup-uv@v6
6363
with:
6464
version: "0.4.4"
6565
```
@@ -72,21 +72,21 @@ to install the latest version that satisfies the range.
7272

7373
```yaml
7474
- name: Install a semver range of uv
75-
uses: astral-sh/setup-uv@v5
75+
uses: astral-sh/setup-uv@v6
7676
with:
7777
version: ">=0.4.0"
7878
```
7979

8080
```yaml
8181
- name: Pinning a minor version of uv
82-
uses: astral-sh/setup-uv@v5
82+
uses: astral-sh/setup-uv@v6
8383
with:
8484
version: "0.4.x"
8585
```
8686

8787
```yaml
8888
- name: Install a pep440-specifier-satisfying version of uv
89-
uses: astral-sh/setup-uv@v5
89+
uses: astral-sh/setup-uv@v6
9090
with:
9191
version: ">=0.4.25,<0.5"
9292
```
@@ -99,7 +99,7 @@ This will override any python version specifications in `pyproject.toml` and `.p
9999

100100
```yaml
101101
- name: Install the latest version of uv and set the python version to 3.13t
102-
uses: astral-sh/setup-uv@v5
102+
uses: astral-sh/setup-uv@v6
103103
with:
104104
python-version: 3.13t
105105
- run: uv pip install --python=3.13t pip
@@ -117,7 +117,7 @@ jobs:
117117
steps:
118118
- uses: actions/checkout@v4
119119
- name: Install the latest version of uv and set the python version
120-
uses: astral-sh/setup-uv@v5
120+
uses: astral-sh/setup-uv@v6
121121
with:
122122
python-version: ${{ matrix.python-version }}
123123
- name: Test with python ${{ matrix.python-version }}
@@ -131,7 +131,7 @@ This allows directly using it in later steps:
131131

132132
```yaml
133133
- name: Install the latest version of uv and activate the environment
134-
uses: astral-sh/setup-uv@v5
134+
uses: astral-sh/setup-uv@v6
135135
with:
136136
activate-environment: true
137137
- run: uv pip install pip
@@ -147,7 +147,7 @@ It also controls where [the venv gets created](#activate-environment).
147147

148148
```yaml
149149
- name: Install uv based on the config files in the working-directory
150-
uses: astral-sh/setup-uv@v5
150+
uses: astral-sh/setup-uv@v6
151151
with:
152152
working-directory: my/subproject/dir
153153
```
@@ -160,7 +160,7 @@ are automatically verified by this action. The sha256 hashes can be found on the
160160

161161
```yaml
162162
- name: Install a specific version and validate the checksum
163-
uses: astral-sh/setup-uv@v5
163+
uses: astral-sh/setup-uv@v6
164164
with:
165165
version: "0.3.1"
166166
checksum: "e11b01402ab645392c7ad6044db63d37e4fd1e745e015306993b07695ea5f9f8"
@@ -182,7 +182,7 @@ You can optionally define a custom cache key suffix.
182182
```yaml
183183
- name: Enable caching and define a custom cache key suffix
184184
id: setup-uv
185-
uses: astral-sh/setup-uv@v5
185+
uses: astral-sh/setup-uv@v6
186186
with:
187187
enable-cache: true
188188
cache-suffix: "optional-suffix"
@@ -217,15 +217,15 @@ changes. If you use relative paths, they are relative to the repository root.
217217

218218
```yaml
219219
- name: Define a cache dependency glob
220-
uses: astral-sh/setup-uv@v5
220+
uses: astral-sh/setup-uv@v6
221221
with:
222222
enable-cache: true
223223
cache-dependency-glob: "**/pyproject.toml"
224224
```
225225

226226
```yaml
227227
- name: Define a list of cache dependency globs
228-
uses: astral-sh/setup-uv@v5
228+
uses: astral-sh/setup-uv@v6
229229
with:
230230
enable-cache: true
231231
cache-dependency-glob: |
@@ -235,15 +235,15 @@ changes. If you use relative paths, they are relative to the repository root.
235235

236236
```yaml
237237
- name: Define an absolute cache dependency glob
238-
uses: astral-sh/setup-uv@v5
238+
uses: astral-sh/setup-uv@v6
239239
with:
240240
enable-cache: true
241241
cache-dependency-glob: "/tmp/my-folder/requirements*.txt"
242242
```
243243

244244
```yaml
245245
- name: Never invalidate the cache
246-
uses: astral-sh/setup-uv@v5
246+
uses: astral-sh/setup-uv@v6
247247
with:
248248
enable-cache: true
249249
cache-dependency-glob: ""
@@ -258,7 +258,7 @@ It defaults to `setup-uv-cache` in the `TMP` dir, `D:\a\_temp\uv-tool-dir` on Wi
258258

259259
```yaml
260260
- name: Define a custom uv cache path
261-
uses: astral-sh/setup-uv@v5
261+
uses: astral-sh/setup-uv@v6
262262
with:
263263
cache-local-path: "/path/to/cache"
264264
```
@@ -277,7 +277,7 @@ input.
277277

278278
```yaml
279279
- name: Don't prune the cache before saving it
280-
uses: astral-sh/setup-uv@v5
280+
uses: astral-sh/setup-uv@v6
281281
with:
282282
enable-cache: true
283283
prune-cache: false
@@ -290,7 +290,7 @@ If you want to ignore this, set the `ignore-nothing-to-cache` input to `true`.
290290

291291
```yaml
292292
- name: Ignore nothing to cache
293-
uses: astral-sh/setup-uv@v5
293+
uses: astral-sh/setup-uv@v6
294294
with:
295295
enable-cache: true
296296
ignore-nothing-to-cache: true
@@ -305,7 +305,7 @@ If you want to ignore this, set the `ignore-empty-workdir` input to `true`.
305305

306306
```yaml
307307
- name: Ignore empty workdir
308-
uses: astral-sh/setup-uv@v5
308+
uses: astral-sh/setup-uv@v6
309309
with:
310310
ignore-empty-workdir: true
311311
```
@@ -322,7 +322,7 @@ are not sufficient, you can provide a custom GitHub token with the necessary per
322322

323323
```yaml
324324
- name: Install the latest version of uv with a custom GitHub token
325-
uses: astral-sh/setup-uv@v5
325+
uses: astral-sh/setup-uv@v6
326326
with:
327327
github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
328328
```
@@ -340,7 +340,7 @@ input:
340340

341341
```yaml
342342
- name: Install the latest version of uv with a custom tool dir
343-
uses: astral-sh/setup-uv@v5
343+
uses: astral-sh/setup-uv@v6
344344
with:
345345
tool-dir: "/path/to/tool/dir"
346346
```
@@ -359,7 +359,7 @@ If you want to change this behaviour (especially on self-hosted runners) you can
359359

360360
```yaml
361361
- name: Install the latest version of uv with a custom tool bin dir
362-
uses: astral-sh/setup-uv@v5
362+
uses: astral-sh/setup-uv@v6
363363
with:
364364
tool-bin-dir: "/path/to/tool-bin/dir"
365365
```
@@ -375,7 +375,7 @@ This action supports expanding the `~` character to the user's home directory fo
375375

376376
```yaml
377377
- name: Expand the tilde character
378-
uses: astral-sh/setup-uv@v5
378+
uses: astral-sh/setup-uv@v6
379379
with:
380380
cache-local-path: "~/path/to/cache"
381381
tool-dir: "~/path/to/tool/dir"
@@ -408,7 +408,7 @@ For example:
408408
- name: Checkout the repository
409409
uses: actions/checkout@main
410410
- name: Install the latest version of uv
411-
uses: astral-sh/setup-uv@v5
411+
uses: astral-sh/setup-uv@v6
412412
with:
413413
enable-cache: true
414414
- name: Test
@@ -420,7 +420,7 @@ To install a specific version of Python, use
420420

421421
```yaml
422422
- name: Install the latest version of uv
423-
uses: astral-sh/setup-uv@v5
423+
uses: astral-sh/setup-uv@v6
424424
with:
425425
enable-cache: true
426426
- name: Install Python 3.12
@@ -439,7 +439,7 @@ output:
439439
uses: actions/checkout@main
440440
- name: Install the default version of uv
441441
id: setup-uv
442-
uses: astral-sh/setup-uv@v5
442+
uses: astral-sh/setup-uv@v6
443443
- name: Print the installed version
444444
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
445445
```

0 commit comments

Comments
 (0)