mirror of
https://github.com/fastapi/fastapi.git
synced 2026-09-13 14:02:38 -04:00
Optimize cache for pre-commit workflow
This commit is contained in:
1 parent
0622a151c1
commit
a6d35b9052
2 files changed
+48
No files matched your search
@@ -7,6 +7,7 @@ permissions: {}
|
||||
env:
|
||||
# Forks and Dependabot don't have access to secrets
|
||||
HAS_SECRETS: ${{ secrets.PRE_COMMIT != '' }}
|
||||
UV_NO_SYNC: true
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
@@ -48,6 +49,10 @@ jobs:
|
||||
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
||||
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
||||
version: "0.11.18"
|
||||
cache-suffix: dev-all
|
||||
# Cache written by workflow triggered by pull_request is PR-scoped and almost useless.
|
||||
# Disable saving here, it will be populated by `warm-cache.yml`.
|
||||
save-cache: false
|
||||
cache-dependency-glob: |
|
||||
pyproject.toml
|
||||
uv.lock
|
||||
|
||||
Reference in new issue
Block a user