mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Use prepackaged uv image for tests
This commit is contained in:
parent
0096160ba7
commit
a1e6066374
1 changed files with 2 additions and 4 deletions
|
@ -3,7 +3,7 @@ labels:
|
|||
|
||||
steps:
|
||||
- name: test
|
||||
image: python:3.13.7-slim
|
||||
image: astral/uv:python3.13-trixie-slim
|
||||
environment:
|
||||
BACKEND_SECRET_KEY:
|
||||
from_secret: BACKEND_SECRET_KEY
|
||||
|
@ -50,9 +50,7 @@ steps:
|
|||
CACHE_PASSWORD:
|
||||
from_secret: CACHE_PASSWORD
|
||||
commands:
|
||||
- apt-get update && apt-get install -y --no-install-recommends curl build-essential && rm -rf /var/lib/apt/lists/*
|
||||
- curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- uv sync --frozen --compile-bytecode
|
||||
- uv sync --frozen
|
||||
- pytest src/
|
||||
- name: discord
|
||||
image: appleboy/drone-discord
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue