Skip to content

Commit b5605d2

Browse files
varun369claude
andcommitted
fix(ci): use pyproject.toml as uv cache key instead of uv.lock
uv.lock is gitignored (library best practice). The setup-uv action defaults to caching based on uv.lock which fails when the file is not in the repo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 90dfc7b commit b5605d2

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- uses: astral-sh/setup-uv@v4
1515
with:
1616
enable-cache: true
17+
cache-dependency-glob: "**/pyproject.toml"
1718

1819
- name: Set up Python
1920
uses: actions/setup-python@v5

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- uses: astral-sh/setup-uv@v4
2626
with:
2727
enable-cache: true
28+
cache-dependency-glob: "**/pyproject.toml"
2829

2930
- name: Set up Python ${{ matrix.python-version }}
3031
uses: actions/setup-python@v5

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: astral-sh/setup-uv@v4
2323
with:
2424
enable-cache: true
25+
cache-dependency-glob: "**/pyproject.toml"
2526

2627
- name: Set up Python
2728
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)