Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

ci: isolate test dependency caches by job (#10640)

Isaac Miller9e9416aaeac3
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index 49d68b9bc..e38c73201 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -99,6 +99,8 @@ jobs:
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: true
+ # Keep test wheels separate from the smaller package-build cache.
+ cache-suffix: ${{ github.job }}
cache-dependency-glob: |
**/pyproject.toml
**/uv.lock
@@ -141,6 +143,8 @@ jobs:
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: true
+ # Preserve optional-dependency wheels independently of the core tests.
+ cache-suffix: ${{ github.job }}
cache-dependency-glob: |
**/pyproject.toml
**/uv.lock