Skip to content

Commit ce05b7e

Browse files
committed
feat: add cache for uv
1 parent 8e5debe commit ce05b7e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fastapi_template/template/{{cookiecutter.project_name}}/.gitlab-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,19 @@ variables:
1515
- docker-runner
1616
except:
1717
- tags
18+
variables:
19+
UV_CACHE_DIR: .uv-cache
20+
cache:
21+
- key:
22+
files:
23+
- uv.lock
24+
paths:
25+
- $UV_CACHE_DIR
1826
before_script:
1927
- cd $CI_PROJECT_DIR
2028
- uv sync --locked --all-extras --dev
29+
after_script:
30+
- uv cache prune --ci
2131

2232
formatter:
2333
extends:

0 commit comments

Comments
 (0)