Update .drone.yml #4

Closed
WorldTeacher wants to merge 6 commits from chore-update-drone into main
Showing only changes of commit 03c42dcd68 - Show all commits

View File

@@ -4,11 +4,13 @@ type: docker
name: python-uv-ci
trigger:
event: [ pull_request ]
event: [ push, pull_request ]
volumes:
- name: uv-cache
temp: {}
- name: uv-home
temp: {} # persists ~/.local (uv tool shims/envs) across steps in this run
steps:
- name: lint+typecheck
@@ -16,23 +18,30 @@ steps:
volumes:
- name: uv-cache
path: /root/.cache/uv
- name: uv-home
path: /root/.local
environment:
UV_NO_SYNC_PROGRESS: "1"
commands:
- apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
- curl -LsSf https://astral.sh/uv/install.sh | sh
- export PATH="$HOME/.local/bin:$PATH"
- uv --version
- uv python install 3.13
- uv sync --all-extras --dev
- uv run ruff check .
- uv run mypy --ignore-missing-imports .
# install CLI tools (ruff not bundled by default)
- uv tool install ruff mypy pytest pytest-cov
- ruff --version
- mypy --version
- ruff check .
- mypy --ignore-missing-imports .
- name: test
image: python:3.13-slim
volumes:
- name: uv-cache
path: /root/.cache/uv
- name: uv-home
path: /root/.local
environment:
UV_NO_SYNC_PROGRESS: "1"
commands:
@@ -41,13 +50,17 @@ steps:
- export PATH="$HOME/.local/bin:$PATH"
- uv python install 3.13
- uv sync --all-extras --dev
- uv run pytest -q --maxfail=1 --disable-warnings --cov --cov-report=term-missing
# tools already installed in previous step; safe to re-run for idempotency
- uv tool install pytest pytest-cov
- pytest -q --maxfail=1 --disable-warnings --cov --cov-report=term-missing
- name: build-wheel
image: python:3.13-slim
volumes:
- name: uv-cache
path: /root/.cache/uv
- name: uv-home
path: /root/.local
environment:
UV_NO_SYNC_PROGRESS: "1"
commands: