Skip to content

Commit cb6c0a5

Browse files
authored
Change version in docs to v7 (#647)
1 parent dffc629 commit cb6c0a5

File tree

5 files changed

+36
-36
lines changed

5 files changed

+36
-36
lines changed

README.md

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

2727
```yaml
2828
- name: Install the latest version of uv
29-
uses: astral-sh/setup-uv@v6
29+
uses: astral-sh/setup-uv@v7
3030
```
3131
3232
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
4242

4343
```yaml
4444
- name: Install uv with all available options
45-
uses: astral-sh/setup-uv@v6
45+
uses: astral-sh/setup-uv@v7
4646
with:
4747
# The version of uv to install (default: searches for version in config files, then latest)
4848
version: ""
@@ -134,7 +134,7 @@ This will override any python version specifications in `pyproject.toml` and `.p
134134

135135
```yaml
136136
- name: Install the latest version of uv and set the python version to 3.13t
137-
uses: astral-sh/setup-uv@v6
137+
uses: astral-sh/setup-uv@v7
138138
with:
139139
python-version: 3.13t
140140
- run: uv pip install --python=3.13t pip
@@ -152,7 +152,7 @@ jobs:
152152
steps:
153153
- uses: actions/checkout@v5
154154
- name: Install the latest version of uv and set the python version
155-
uses: astral-sh/setup-uv@v6
155+
uses: astral-sh/setup-uv@v7
156156
with:
157157
python-version: ${{ matrix.python-version }}
158158
- name: Test with python ${{ matrix.python-version }}
@@ -169,7 +169,7 @@ It also controls where [the venv gets created](#activate-environment).
169169

170170
```yaml
171171
- name: Install uv based on the config files in the working-directory
172-
uses: astral-sh/setup-uv@v6
172+
uses: astral-sh/setup-uv@v7
173173
with:
174174
working-directory: my/subproject/dir
175175
```
@@ -208,7 +208,7 @@ For example:
208208
- name: Checkout the repository
209209
uses: actions/checkout@main
210210
- name: Install the latest version of uv
211-
uses: astral-sh/setup-uv@v6
211+
uses: astral-sh/setup-uv@v7
212212
with:
213213
enable-cache: true
214214
- name: Test
@@ -220,7 +220,7 @@ To install a specific version of Python, use
220220

221221
```yaml
222222
- name: Install the latest version of uv
223-
uses: astral-sh/setup-uv@v6
223+
uses: astral-sh/setup-uv@v7
224224
with:
225225
enable-cache: true
226226
- name: Install Python 3.12
@@ -239,7 +239,7 @@ output:
239239
uses: actions/checkout@main
240240
- name: Install the default version of uv
241241
id: setup-uv
242-
uses: astral-sh/setup-uv@v6
242+
uses: astral-sh/setup-uv@v7
243243
- name: Print the installed version
244244
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
245245
```

docs/advanced-version-configuration.md

Lines changed: 7 additions & 7 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@v6
9+
uses: astral-sh/setup-uv@v7
1010
with:
1111
version: "latest"
1212
```
@@ -15,7 +15,7 @@ This document covers advanced options for configuring which version of uv to ins
1515
1616
```yaml
1717
- name: Install a specific version of uv
18-
uses: astral-sh/setup-uv@v6
18+
uses: astral-sh/setup-uv@v7
1919
with:
2020
version: "0.4.4"
2121
```
@@ -28,21 +28,21 @@ to install the latest version that satisfies the range.
2828
2929
```yaml
3030
- name: Install a semver range of uv
31-
uses: astral-sh/setup-uv@v6
31+
uses: astral-sh/setup-uv@v7
3232
with:
3333
version: ">=0.4.0"
3434
```
3535
3636
```yaml
3737
- name: Pinning a minor version of uv
38-
uses: astral-sh/setup-uv@v6
38+
uses: astral-sh/setup-uv@v7
3939
with:
4040
version: "0.4.x"
4141
```
4242
4343
```yaml
4444
- name: Install a pep440-specifier-satisfying version of uv
45-
uses: astral-sh/setup-uv@v6
45+
uses: astral-sh/setup-uv@v7
4646
with:
4747
version: ">=0.4.25,<0.5"
4848
```
@@ -54,7 +54,7 @@ You can change this behavior using the `resolution-strategy` input:
5454

5555
```yaml
5656
- name: Install the lowest compatible version of uv
57-
uses: astral-sh/setup-uv@v6
57+
uses: astral-sh/setup-uv@v7
5858
with:
5959
version: ">=0.4.0"
6060
resolution-strategy: "lowest"
@@ -76,7 +76,7 @@ uv defined as a dependency in `pyproject.toml` or `requirements.txt`.
7676

7777
```yaml
7878
- name: Install uv based on the version defined in pyproject.toml
79-
uses: astral-sh/setup-uv@v6
79+
uses: astral-sh/setup-uv@v7
8080
with:
8181
version-file: "pyproject.toml"
8282
```

docs/caching.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You can optionally define a custom cache key suffix.
2222
```yaml
2323
- name: Enable caching and define a custom cache key suffix
2424
id: setup-uv
25-
uses: astral-sh/setup-uv@v6
25+
uses: astral-sh/setup-uv@v7
2626
with:
2727
enable-cache: true
2828
cache-suffix: "optional-suffix"
@@ -61,15 +61,15 @@ changes. If you use relative paths, they are relative to the repository root.
6161

6262
```yaml
6363
- name: Define a cache dependency glob
64-
uses: astral-sh/setup-uv@v6
64+
uses: astral-sh/setup-uv@v7
6565
with:
6666
enable-cache: true
6767
cache-dependency-glob: "**/pyproject.toml"
6868
```
6969

7070
```yaml
7171
- name: Define a list of cache dependency globs
72-
uses: astral-sh/setup-uv@v6
72+
uses: astral-sh/setup-uv@v7
7373
with:
7474
enable-cache: true
7575
cache-dependency-glob: |
@@ -79,15 +79,15 @@ changes. If you use relative paths, they are relative to the repository root.
7979

8080
```yaml
8181
- name: Define an absolute cache dependency glob
82-
uses: astral-sh/setup-uv@v6
82+
uses: astral-sh/setup-uv@v7
8383
with:
8484
enable-cache: true
8585
cache-dependency-glob: "/tmp/my-folder/requirements*.txt"
8686
```
8787

8888
```yaml
8989
- name: Never invalidate the cache
90-
uses: astral-sh/setup-uv@v6
90+
uses: astral-sh/setup-uv@v7
9191
with:
9292
enable-cache: true
9393
cache-dependency-glob: ""
@@ -100,7 +100,7 @@ By default, the cache will be restored.
100100

101101
```yaml
102102
- name: Don't restore an existing cache
103-
uses: astral-sh/setup-uv@v6
103+
uses: astral-sh/setup-uv@v7
104104
with:
105105
enable-cache: true
106106
restore-cache: false
@@ -114,7 +114,7 @@ By default, the cache will be saved.
114114

115115
```yaml
116116
- name: Don't save the cache after the run
117-
uses: astral-sh/setup-uv@v6
117+
uses: astral-sh/setup-uv@v7
118118
with:
119119
enable-cache: true
120120
save-cache: false
@@ -136,7 +136,7 @@ It defaults to `setup-uv-cache` in the `TMP` dir, `D:\a\_temp\setup-uv-cache` on
136136

137137
```yaml
138138
- name: Define a custom uv cache path
139-
uses: astral-sh/setup-uv@v6
139+
uses: astral-sh/setup-uv@v7
140140
with:
141141
cache-local-path: "/path/to/cache"
142142
```
@@ -155,7 +155,7 @@ input.
155155

156156
```yaml
157157
- name: Don't prune the cache before saving it
158-
uses: astral-sh/setup-uv@v6
158+
uses: astral-sh/setup-uv@v7
159159
with:
160160
enable-cache: true
161161
prune-cache: false
@@ -169,7 +169,7 @@ If you want to cache Python installs along with your dependencies, set the `cach
169169

170170
```yaml
171171
- name: Cache Python installs
172-
uses: astral-sh/setup-uv@v6
172+
uses: astral-sh/setup-uv@v7
173173
with:
174174
enable-cache: true
175175
cache-python: true
@@ -182,7 +182,7 @@ If you want to ignore this, set the `ignore-nothing-to-cache` input to `true`.
182182

183183
```yaml
184184
- name: Ignore nothing to cache
185-
uses: astral-sh/setup-uv@v6
185+
uses: astral-sh/setup-uv@v7
186186
with:
187187
enable-cache: true
188188
ignore-nothing-to-cache: true

docs/customization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ are automatically verified by this action. The sha256 hashes can be found on the
1010

1111
```yaml
1212
- name: Install a specific version and validate the checksum
13-
uses: astral-sh/setup-uv@v6
13+
uses: astral-sh/setup-uv@v7
1414
with:
1515
version: "0.3.1"
1616
checksum: "e11b01402ab645392c7ad6044db63d37e4fd1e745e015306993b07695ea5f9f8"
@@ -44,7 +44,7 @@ This is useful if you maintain your own uv builds or want to override the defaul
4444

4545
```yaml
4646
- name: Use a custom manifest file
47-
uses: astral-sh/setup-uv@v6
47+
uses: astral-sh/setup-uv@v7
4848
with:
4949
manifest-file: "https://example.com/my-custom-manifest.json"
5050
```
@@ -64,7 +64,7 @@ You can disable this by setting the `add-problem-matchers` input to `false`.
6464

6565
```yaml
6666
- name: Install the latest version of uv without problem matchers
67-
uses: astral-sh/setup-uv@v6
67+
uses: astral-sh/setup-uv@v7
6868
with:
6969
add-problem-matchers: false
7070
```

docs/environment-and-tools.md

Lines changed: 7 additions & 7 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@v6
12+
uses: astral-sh/setup-uv@v7
1313
with:
1414
activate-environment: true
1515
- run: uv pip install pip
@@ -37,7 +37,7 @@ are not sufficient, you can provide a custom GitHub token with the necessary per
3737

3838
```yaml
3939
- name: Install the latest version of uv with a custom GitHub token
40-
uses: astral-sh/setup-uv@v6
40+
uses: astral-sh/setup-uv@v7
4141
with:
4242
github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
4343
```
@@ -55,7 +55,7 @@ input:
5555

5656
```yaml
5757
- name: Install the latest version of uv with a custom tool dir
58-
uses: astral-sh/setup-uv@v6
58+
uses: astral-sh/setup-uv@v7
5959
with:
6060
tool-dir: "/path/to/tool/dir"
6161
```
@@ -74,7 +74,7 @@ If you want to change this behaviour (especially on self-hosted runners) you can
7474

7575
```yaml
7676
- name: Install the latest version of uv with a custom tool bin dir
77-
uses: astral-sh/setup-uv@v6
77+
uses: astral-sh/setup-uv@v7
7878
with:
7979
tool-bin-dir: "/path/to/tool-bin/dir"
8080
```
@@ -91,7 +91,7 @@ This action supports expanding the `~` character to the user's home directory fo
9191

9292
```yaml
9393
- name: Expand the tilde character
94-
uses: astral-sh/setup-uv@v6
94+
uses: astral-sh/setup-uv@v7
9595
with:
9696
cache-local-path: "~/path/to/cache"
9797
tool-dir: "~/path/to/tool/dir"
@@ -108,7 +108,7 @@ If you want to ignore this, set the `ignore-empty-workdir` input to `true`.
108108

109109
```yaml
110110
- name: Ignore empty workdir
111-
uses: astral-sh/setup-uv@v6
111+
uses: astral-sh/setup-uv@v7
112112
with:
113113
ignore-empty-workdir: true
114114
```
@@ -131,7 +131,7 @@ This action sets several environment variables that influence uv's behavior and
131131

132132
```yaml
133133
- name: Example using environment variables
134-
uses: astral-sh/setup-uv@v6
134+
uses: astral-sh/setup-uv@v7
135135
with:
136136
python-version: "3.12"
137137
tool-dir: "/custom/tool/dir"

0 commit comments

Comments
 (0)