mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Implement caching for lint and test steps
This commit is contained in:
parent
1bca27ecbe
commit
0d7e5ebb8b
2 changed files with 6 additions and 2 deletions
|
@ -5,10 +5,12 @@ steps:
|
|||
- name: lint
|
||||
image: astral/uv:python3.13-trixie-slim
|
||||
commands:
|
||||
- uv sync --frozen
|
||||
- uv sync --frozen --cache-dir /.cache/uv
|
||||
- export PATH=".venv/bin:$PATH"
|
||||
- ruff check src/. --no-fix --diff
|
||||
- isort --check --diff src/.
|
||||
volumes:
|
||||
- /tmp/.uv:/.cache/uv
|
||||
- name: discord
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue