Skip to content

Commit 4ed98dc

Browse files
github-actions[bot]Copilot
authored andcommitted
ci: enable uv cache in all CI jobs to speed up dependency installation
Add `enable-cache: true` to each `astral-sh/setup-uv` step in the Python package workflow (code-quality, build matrix, coverage). With caching enabled, uv stores downloaded packages in a persistent cache directory. Repeated runs (e.g. the 18-job matrix across 3 platforms × 6 Python versions) skip downloading packages already in cache, reducing install time significantly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8413154 commit 4ed98dc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515

1616
- name: Install uv
1717
uses: astral-sh/setup-uv@v7
18+
with:
19+
enable-cache: true
1820

1921
- name: Install dependencies
2022
run: |
@@ -40,6 +42,8 @@ jobs:
4042

4143
- name: Install uv
4244
uses: astral-sh/setup-uv@v7
45+
with:
46+
enable-cache: true
4347

4448
- name: Install dependencies
4549
run: |
@@ -61,6 +65,8 @@ jobs:
6165

6266
- name: Install uv
6367
uses: astral-sh/setup-uv@v7
68+
with:
69+
enable-cache: true
6470

6571
- name: Install dependencies
6672
run: |

0 commit comments

Comments
 (0)