From 21768e8a0529ab8b9a465b2f071b19c1af856cb5 Mon Sep 17 00:00:00 2001 From: Marlan Perumal Date: Tue, 14 Jan 2025 16:45:40 +0200 Subject: [PATCH] Added cache to uv setup in github actions (#67) --- .github/workflows/publish.yml | 6 ++++++ .github/workflows/test.yml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0063a2d..9153f17 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,6 +18,9 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + cache-dependency-glob: "uv.lock" - name: Install the project run: uv sync --all-extras --dev @@ -39,6 +42,9 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + cache-dependency-glob: "uv.lock" - name: Install the project run: uv sync --all-extras --dev diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1b4746..7b2c27a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,9 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + cache-dependency-glob: "uv.lock" - name: Install the project run: uv sync --all-extras --dev