From 37949c2fffa4b6a6c56ea749a8061a20da5e3232 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 16 Feb 2025 08:10:21 +0100 Subject: [PATCH] Upgrade to uv>=0.6.0 and enable-cache --- .github/workflows/integration.yml | 4 ++-- .github/workflows/lint.yml | 4 ++-- .github/workflows/release-dev.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- Dockerfile | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index a8d790b1..916bf49b 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -22,12 +22,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: "pip" - name: Install UV uses: astral-sh/setup-uv@v5 with: - version: ">=0.5.24" + enable-cache: true + version: ">=0.6.0" - name: Install dependencies run: uv sync --all-extras --frozen diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 190d6560..c5ee8e46 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,12 +22,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: "pip" - name: Install UV uses: astral-sh/setup-uv@v5 with: - version: ">=0.5.24" + enable-cache: true + version: ">=0.6.0" - name: Install dependencies run: uv sync --all-extras --frozen diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml index 25c9e990..a6786af1 100644 --- a/.github/workflows/release-dev.yml +++ b/.github/workflows/release-dev.yml @@ -25,7 +25,7 @@ jobs: - name: Install UV uses: astral-sh/setup-uv@v5 with: - version: ">=0.5.24" + version: ">=0.6.0" - name: Build package run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6cf581aa..74c09459 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Install UV uses: astral-sh/setup-uv@v5 with: - version: ">=0.5.24" + version: ">=0.6.0" - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 586bc5a8..a6b40010 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,12 +27,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: "pip" - name: Install UV uses: astral-sh/setup-uv@v5 with: - version: ">=0.5.24" + enable-cache: true + version: ">=0.6.0" - name: Install dependencies run: uv sync --all-extras --frozen diff --git a/Dockerfile b/Dockerfile index 178eda1b..5de32d58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /isort COPY pyproject.toml uv.lock /isort/ # Install uv -COPY --from=ghcr.io/astral-sh/uv:0.5.24 /uv /uvx /bin/ +COPY --from=ghcr.io/astral-sh/uv:0.6.0 /uv /uvx /bin/ # Setup as minimal a stub project as possible, simply to allow caching base dependencies # between builds.