Skip to content

Commit

Permalink
Update documentation references to astral-sh/setup-uv to v4 (#9408)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Nov 25, 2024
1 parent 064fcd9 commit a17c047
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/guides/integration/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
```
It is considered best practice to pin to a specific uv version, e.g., with:
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
with:
# Install a specific version of uv.
version: "0.5.4"
Expand All @@ -59,7 +59,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
Expand All @@ -117,7 +117,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: "Set up Python"
uses: actions/setup-python@v5
Expand All @@ -140,7 +140,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: "Set up Python"
uses: actions/setup-python@v5
Expand All @@ -165,7 +165,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install
Expand Down Expand Up @@ -193,7 +193,7 @@ persisting the cache:

```yaml title="example.yml"
- name: Enable caching
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
```
Expand All @@ -202,7 +202,7 @@ You can configure the action to use a custom cache directory on the runner:

```yaml title="example.yml"
- name: Define a custom uv cache path
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-local-path: "/path/to/cache"
Expand All @@ -212,7 +212,7 @@ Or invalidate it when the lockfile changes:

```yaml title="example.yml"
- name: Define a cache dependency glob
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
Expand All @@ -222,7 +222,7 @@ Or when any requirements file changes:

```yaml title="example.yml"
- name: Define a cache dependency glob
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "requirements**.txt"
Expand Down

0 comments on commit a17c047

Please sign in to comment.