Update .drone.yml
Some checks failed
/ test-build (pull_request) Failing after 18s
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-10-24 21:56:47 +01:00
parent e215ba489a
commit 03c42dcd68

View File

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