diff --git a/README.md b/README.md index b06d15e..67768f9 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs ```yaml - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 ``` 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@v6 + uses: astral-sh/setup-uv@v7 with: # The version of uv to install (default: searches for version in config files, then latest) version: "" @@ -134,7 +134,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@v6 + uses: astral-sh/setup-uv@v7 with: python-version: 3.13t - run: uv pip install --python=3.13t pip @@ -152,7 +152,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Install the latest version of uv and set the python version - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python-version }} - name: Test with python ${{ matrix.python-version }} @@ -169,7 +169,7 @@ It also controls where [the venv gets created](#activate-environment). ```yaml - name: Install uv based on the config files in the working-directory - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: working-directory: my/subproject/dir ``` @@ -208,7 +208,7 @@ For example: - name: Checkout the repository uses: actions/checkout@main - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true - name: Test @@ -220,7 +220,7 @@ To install a specific version of Python, use ```yaml - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true - name: Install Python 3.12 @@ -239,7 +239,7 @@ output: uses: actions/checkout@main - name: Install the default version of uv id: setup-uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 - name: Print the installed version run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}" ``` diff --git a/docs/advanced-version-configuration.md b/docs/advanced-version-configuration.md index 25dab52..3da882a 100644 --- a/docs/advanced-version-configuration.md +++ b/docs/advanced-version-configuration.md @@ -6,7 +6,7 @@ This document covers advanced options for configuring which version of uv to ins ```yaml - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: version: "latest" ``` @@ -15,7 +15,7 @@ This document covers advanced options for configuring which version of uv to ins ```yaml - name: Install a specific version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: version: "0.4.4" ``` @@ -28,21 +28,21 @@ to install the latest version that satisfies the range. ```yaml - name: Install a semver range of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: version: ">=0.4.0" ``` ```yaml - name: Pinning a minor version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: version: "0.4.x" ``` ```yaml - name: Install a pep440-specifier-satisfying version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: version: ">=0.4.25,<0.5" ``` @@ -54,7 +54,7 @@ You can change this behavior using the `resolution-strategy` input: ```yaml - name: Install the lowest compatible version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: version: ">=0.4.0" resolution-strategy: "lowest" @@ -76,7 +76,7 @@ uv defined as a dependency in `pyproject.toml` or `requirements.txt`. ```yaml - name: Install uv based on the version defined in pyproject.toml - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: version-file: "pyproject.toml" ``` diff --git a/docs/caching.md b/docs/caching.md index 03a08dc..7cd9ab6 100644 --- a/docs/caching.md +++ b/docs/caching.md @@ -22,7 +22,7 @@ You can optionally define a custom cache key suffix. ```yaml - name: Enable caching and define a custom cache key suffix id: setup-uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-suffix: "optional-suffix" @@ -61,7 +61,7 @@ changes. If you use relative paths, they are relative to the repository root. ```yaml - name: Define a cache dependency glob - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-dependency-glob: "**/pyproject.toml" @@ -69,7 +69,7 @@ changes. If you use relative paths, they are relative to the repository root. ```yaml - name: Define a list of cache dependency globs - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-dependency-glob: | @@ -79,7 +79,7 @@ changes. If you use relative paths, they are relative to the repository root. ```yaml - name: Define an absolute cache dependency glob - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-dependency-glob: "/tmp/my-folder/requirements*.txt" @@ -87,7 +87,7 @@ changes. If you use relative paths, they are relative to the repository root. ```yaml - name: Never invalidate the cache - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-dependency-glob: "" @@ -100,7 +100,7 @@ By default, the cache will be restored. ```yaml - name: Don't restore an existing cache - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true restore-cache: false @@ -114,7 +114,7 @@ By default, the cache will be saved. ```yaml - name: Don't save the cache after the run - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true save-cache: false @@ -136,7 +136,7 @@ It defaults to `setup-uv-cache` in the `TMP` dir, `D:\a\_temp\setup-uv-cache` on ```yaml - name: Define a custom uv cache path - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: cache-local-path: "/path/to/cache" ``` @@ -155,7 +155,7 @@ input. ```yaml - name: Don't prune the cache before saving it - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true prune-cache: false @@ -169,7 +169,7 @@ If you want to cache Python installs along with your dependencies, set the `cach ```yaml - name: Cache Python installs - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-python: true @@ -182,7 +182,7 @@ If you want to ignore this, set the `ignore-nothing-to-cache` input to `true`. ```yaml - name: Ignore nothing to cache - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: enable-cache: true ignore-nothing-to-cache: true diff --git a/docs/customization.md b/docs/customization.md index 29e3728..d817ddb 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -10,7 +10,7 @@ are automatically verified by this action. The sha256 hashes can be found on the ```yaml - name: Install a specific version and validate the checksum - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: version: "0.3.1" checksum: "e11b01402ab645392c7ad6044db63d37e4fd1e745e015306993b07695ea5f9f8" @@ -44,7 +44,7 @@ This is useful if you maintain your own uv builds or want to override the defaul ```yaml - name: Use a custom manifest file - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: manifest-file: "https://example.com/my-custom-manifest.json" ``` @@ -64,7 +64,7 @@ You can disable this by setting the `add-problem-matchers` input to `false`. ```yaml - name: Install the latest version of uv without problem matchers - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: add-problem-matchers: false ``` diff --git a/docs/environment-and-tools.md b/docs/environment-and-tools.md index 0f5daa6..00eee69 100644 --- a/docs/environment-and-tools.md +++ b/docs/environment-and-tools.md @@ -9,7 +9,7 @@ This allows directly using it in later steps: ```yaml - name: Install the latest version of uv and activate the environment - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: activate-environment: true - run: uv pip install pip @@ -37,7 +37,7 @@ are not sufficient, you can provide a custom GitHub token with the necessary per ```yaml - name: Install the latest version of uv with a custom GitHub token - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} ``` @@ -55,7 +55,7 @@ input: ```yaml - name: Install the latest version of uv with a custom tool dir - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: tool-dir: "/path/to/tool/dir" ``` @@ -74,7 +74,7 @@ If you want to change this behaviour (especially on self-hosted runners) you can ```yaml - name: Install the latest version of uv with a custom tool bin dir - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: tool-bin-dir: "/path/to/tool-bin/dir" ``` @@ -91,7 +91,7 @@ This action supports expanding the `~` character to the user's home directory fo ```yaml - name: Expand the tilde character - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: cache-local-path: "~/path/to/cache" tool-dir: "~/path/to/tool/dir" @@ -108,7 +108,7 @@ If you want to ignore this, set the `ignore-empty-workdir` input to `true`. ```yaml - name: Ignore empty workdir - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: ignore-empty-workdir: true ``` @@ -131,7 +131,7 @@ This action sets several environment variables that influence uv's behavior and ```yaml - name: Example using environment variables - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 with: python-version: "3.12" tool-dir: "/custom/tool/dir"