mirror of
https://github.com/lemeow125/Service_Queue.git
synced 2025-09-20 14:33:02 +08:00
Add uv build cache
This commit is contained in:
parent
76875239fc
commit
ea159013ee
2 changed files with 6 additions and 2 deletions
|
@ -8,10 +8,12 @@ steps:
|
||||||
image: astral/uv:python3.13-trixie-slim
|
image: astral/uv:python3.13-trixie-slim
|
||||||
# TODO: Change src path
|
# TODO: Change src path
|
||||||
commands:
|
commands:
|
||||||
- uv sync --frozen
|
- uv sync --frozen --cache-dir /.cache/uv --link-mode=copy
|
||||||
- export PATH=".venv/bin:$PATH"
|
- export PATH=".venv/bin:$PATH"
|
||||||
- ruff check src/. --no-fix --diff
|
- ruff check src/. --no-fix --diff
|
||||||
- isort --check --diff src/.
|
- isort --check --diff src/.
|
||||||
|
volumes:
|
||||||
|
- /tmp/.uv:/.cache/uv # Optimization: Shared UV cache on local build server
|
||||||
- name: discord
|
- name: discord
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -11,9 +11,11 @@ steps:
|
||||||
# variable:
|
# variable:
|
||||||
# from_secret: variable
|
# from_secret: variable
|
||||||
commands:
|
commands:
|
||||||
- uv sync --frozen
|
- uv sync --frozen --cache-dir /.cache/uv --link-mode=copy
|
||||||
- export PATH=".venv/bin:$PATH"
|
- export PATH=".venv/bin:$PATH"
|
||||||
- pytest
|
- pytest
|
||||||
|
volumes:
|
||||||
|
- /tmp/.uv:/.cache/uv # Optimization: Shared UV cache on local build server
|
||||||
- name: discord
|
- name: discord
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue