Visitar URL original
docs: update version references to v10.3.0 (#1090) · astral-sh/setup-uv@f64d32b · GitHub
Skip to content

Commit f64d32b

Browse files
docs: update version references to v10.3.0 (#1090)
Update `uses: astral-sh/setup-uv@...` references in documentation to `1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0`. Co-authored-by: zanieb <2586601+zanieb@users.noreply.github.com>
1 parent 1c37ad0 commit f64d32b

5 files changed

Lines changed: 41 additions & 41 deletions

File tree

‎README.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
2727

2828
```yaml
2929
- name: Install the latest version of uv
30-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
30+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
3131
```
3232
3333
If you do not specify a version, this action will look for a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)
@@ -43,7 +43,7 @@ Have a look under [Advanced Configuration](#advanced-configuration) for detailed
4343

4444
```yaml
4545
- name: Install uv with all available options
46-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
46+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
4747
with:
4848
# The version of uv to install, e.g., "0.5.0", "latest", or "latest-known" (default: searches for version in config files, then latest)
4949
version: ""
@@ -161,7 +161,7 @@ python 3.13
161161
```
162162

163163
```yaml
164-
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
164+
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
165165
with:
166166
version-file: ".tool-versions"
167167
```
@@ -172,7 +172,7 @@ a warning.
172172

173173
```yaml
174174
- name: Install the latest version of uv and set the python version to 3.13t
175-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
175+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
176176
with:
177177
python-version: 3.13t
178178
- run: uv pip install --python=3.13t pip
@@ -190,7 +190,7 @@ jobs:
190190
steps:
191191
- uses: actions/checkout@v5
192192
- name: Install the latest version of uv and set the python version
193-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
193+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
194194
with:
195195
python-version: ${{ matrix.python-version }}
196196
- name: Test with python ${{ matrix.python-version }}
@@ -226,7 +226,7 @@ It also controls where [the venv gets created](#activate-environment), unless `v
226226

227227
```yaml
228228
- name: Install uv based on the config files in the working-directory
229-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
229+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
230230
with:
231231
working-directory: my/subproject/dir
232232
```
@@ -268,7 +268,7 @@ For example:
268268
- name: Checkout the repository
269269
uses: actions/checkout@main
270270
- name: Install the latest version of uv
271-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
271+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
272272
with:
273273
enable-cache: true
274274
- name: Test
@@ -280,7 +280,7 @@ To install a specific version of Python, use
280280

281281
```yaml
282282
- name: Install the latest version of uv
283-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
283+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
284284
with:
285285
enable-cache: true
286286
- name: Install Python 3.12
@@ -299,7 +299,7 @@ output:
299299
uses: actions/checkout@main
300300
- name: Install the default version of uv
301301
id: setup-uv
302-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
302+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
303303
- name: Print the installed version
304304
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
305305
```

‎docs/advanced-version-configuration.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This document covers advanced options for configuring which version of uv to ins
66

77
```yaml
88
- name: Install the latest version of uv
9-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
9+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
1010
with:
1111
version: "latest"
1212
```
@@ -19,7 +19,7 @@ When `manifest-file` is set, `latest-known` still selects a version from setup-u
1919

2020
```yaml
2121
- name: Install the latest version of uv known to setup-uv
22-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
22+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
2323
with:
2424
version: "latest-known"
2525
```
@@ -28,7 +28,7 @@ When `manifest-file` is set, `latest-known` still selects a version from setup-u
2828

2929
```yaml
3030
- name: Install a specific version of uv
31-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
31+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
3232
with:
3333
version: "0.4.4"
3434
```
@@ -41,21 +41,21 @@ to install the latest version that satisfies the range.
4141

4242
```yaml
4343
- name: Install a semver range of uv
44-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
44+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
4545
with:
4646
version: ">=0.4.0"
4747
```
4848

4949
```yaml
5050
- name: Pinning a minor version of uv
51-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
51+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
5252
with:
5353
version: "0.4.x"
5454
```
5555

5656
```yaml
5757
- name: Install a pep440-specifier-satisfying version of uv
58-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
58+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
5959
with:
6060
version: ">=0.4.25,<0.5"
6161
```
@@ -67,7 +67,7 @@ You can change this behavior using the `resolution-strategy` input:
6767

6868
```yaml
6969
- name: Install the lowest compatible version of uv
70-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
70+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
7171
with:
7272
version: ">=0.4.0"
7373
resolution-strategy: "lowest"
@@ -92,7 +92,7 @@ as `UV_PYTHON`. Only a single Python version is supported; multiple fallback ver
9292

9393
```yaml
9494
- name: Install uv based on the version defined in pyproject.toml
95-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
95+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
9696
with:
9797
version-file: "pyproject.toml"
9898
```
@@ -103,7 +103,7 @@ silently picking up a newer uv until the lockfile is updated.
103103

104104
```yaml
105105
- name: Install uv based on the version locked in uv.lock
106-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
106+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
107107
with:
108108
version-file: "uv.lock"
109109
```

‎docs/caching.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The computed cache key is available as the `cache-key` output:
2424
```yaml
2525
- name: Setup uv
2626
id: setup-uv
27-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
27+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
2828
with:
2929
enable-cache: true
3030
- name: Print cache key
@@ -54,7 +54,7 @@ You can optionally define a custom cache key suffix.
5454
```yaml
5555
- name: Enable caching and define a custom cache key suffix
5656
id: setup-uv
57-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
57+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
5858
with:
5959
enable-cache: true
6060
cache-suffix: "optional-suffix"
@@ -93,15 +93,15 @@ changes. If you use relative paths, they are relative to the working directory.
9393

9494
```yaml
9595
- name: Define a cache dependency glob
96-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
96+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
9797
with:
9898
enable-cache: true
9999
cache-dependency-glob: "**/pyproject.toml"
100100
```
101101

102102
```yaml
103103
- name: Define a list of cache dependency globs
104-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
104+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
105105
with:
106106
enable-cache: true
107107
cache-dependency-glob: |
@@ -111,15 +111,15 @@ changes. If you use relative paths, they are relative to the working directory.
111111

112112
```yaml
113113
- name: Define an absolute cache dependency glob
114-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
114+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
115115
with:
116116
enable-cache: true
117117
cache-dependency-glob: "/tmp/my-folder/requirements*.txt"
118118
```
119119

120120
```yaml
121121
- name: Never invalidate the cache
122-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
122+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
123123
with:
124124
enable-cache: true
125125
cache-dependency-glob: ""
@@ -132,7 +132,7 @@ By default, the cache will be restored.
132132

133133
```yaml
134134
- name: Don't restore an existing cache
135-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
135+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
136136
with:
137137
enable-cache: true
138138
restore-cache: false
@@ -148,7 +148,7 @@ these events. Set `save-cache: true` to save the cache for all events.
148148

149149
```yaml
150150
- name: Don't save the cache after the run
151-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
151+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
152152
with:
153153
enable-cache: true
154154
save-cache: false
@@ -174,7 +174,7 @@ It defaults to `setup-uv-cache` in the `TMP` dir, `D:\a\_temp\setup-uv-cache` on
174174

175175
```yaml
176176
- name: Define a custom uv cache path
177-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
177+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
178178
with:
179179
cache-local-path: "/path/to/cache"
180180
```
@@ -191,7 +191,7 @@ If you want to prune the cache before saving it, enable cache pruning with the `
191191

192192
```yaml
193193
- name: Prune the cache before saving it
194-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
194+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
195195
with:
196196
enable-cache: true
197197
prune-cache: true
@@ -210,7 +210,7 @@ To force managed Python installs, set `UV_PYTHON_PREFERENCE=only-managed`.
210210

211211
```yaml
212212
- name: Cache Python installs
213-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
213+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
214214
with:
215215
enable-cache: true
216216
cache-python: true
@@ -228,7 +228,7 @@ If you want to ignore this, set the `ignore-nothing-to-cache` input to `true`.
228228

229229
```yaml
230230
- name: Ignore nothing to cache
231-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
231+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
232232
with:
233233
enable-cache: true
234234
ignore-nothing-to-cache: true

‎docs/customization.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can specify a checksum to override those values. The sha256 hashes can also
1111

1212
```yaml
1313
- name: Install a specific version and validate the checksum
14-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
14+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
1515
with:
1616
version: "0.3.1"
1717
checksum: "e11b01402ab645392c7ad6044db63d37e4fd1e745e015306993b07695ea5f9f8"
@@ -40,7 +40,7 @@ The `archive_format` field is currently ignored.
4040

4141
```yaml
4242
- name: Use a custom manifest file
43-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
43+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
4444
with:
4545
manifest-file: "https://example.com/my-custom-manifest.ndjson"
4646
```
@@ -59,7 +59,7 @@ You can disable this by setting the `add-problem-matchers` input to `false`.
5959

6060
```yaml
6161
- name: Install the latest version of uv without problem matchers
62-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
62+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
6363
with:
6464
add-problem-matchers: false
6565
```

‎docs/environment-and-tools.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This allows directly using it in later steps:
99

1010
```yaml
1111
- name: Install the latest version of uv and activate the environment
12-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
12+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
1313
with:
1414
activate-environment: true
1515
- run: uv pip install pip
@@ -32,7 +32,7 @@ key: build-${{ runner.os }}-${{ runner.arch }}-${{ steps.setup-uv.outputs.python
3232
You can customize the venv location with `venv-path`, for example to place it in the runner temp directory:
3333

3434
```yaml
35-
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
35+
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
3636
with:
3737
activate-environment: true
3838
venv-path: ${{ runner.temp }}/custom-venv
@@ -63,7 +63,7 @@ are not sufficient, you can provide a custom GitHub token with the necessary per
6363

6464
```yaml
6565
- name: Install the latest version of uv with a custom GitHub token
66-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
66+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
6767
with:
6868
github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
6969
```
@@ -81,7 +81,7 @@ input:
8181

8282
```yaml
8383
- name: Install the latest version of uv with a custom tool dir
84-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
84+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
8585
with:
8686
tool-dir: "/path/to/tool/dir"
8787
```
@@ -100,7 +100,7 @@ If you want to change this behaviour (especially on self-hosted runners) you can
100100

101101
```yaml
102102
- name: Install the latest version of uv with a custom tool bin dir
103-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
103+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
104104
with:
105105
tool-bin-dir: "/path/to/tool-bin/dir"
106106
```
@@ -117,7 +117,7 @@ This action supports expanding the `~` character to the user's home directory fo
117117

118118
```yaml
119119
- name: Expand the tilde character
120-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
120+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
121121
with:
122122
cache-local-path: "~/path/to/cache"
123123
tool-dir: "~/path/to/tool/dir"
@@ -134,7 +134,7 @@ If you want to ignore this, set the `ignore-empty-workdir` input to `true`.
134134

135135
```yaml
136136
- name: Ignore empty workdir
137-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
137+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
138138
with:
139139
ignore-empty-workdir: true
140140
```
@@ -160,7 +160,7 @@ This action sets several environment variables that influence uv's behavior and
160160

161161
```yaml
162162
- name: Example using environment variables
163-
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
163+
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
164164
with:
165165
python-version: "3.12"
166166
tool-dir: "/custom/tool/dir"

0 commit comments

Comments
 (0)