From 03c42dcd68fa314a0351061f510102f8b9f3fb06 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Fri, 24 Oct 2025 21:56:47 +0100 Subject: [PATCH] Update .drone.yml --- .drone.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0a65337..8b30e23 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: