Files
BibAPI/.drone.yml
WorldTeacher e215ba489a
Some checks failed
/ test-build (pull_request) Failing after 19s
continuous-integration/drone/pr Build is failing
Update .drone.yml
2025-10-24 21:44:44 +01:00

61 lines
1.6 KiB
YAML

---
kind: pipeline
type: docker
name: python-uv-ci
trigger:
event: [ pull_request ]
volumes:
- name: uv-cache
temp: {}
steps:
- name: lint+typecheck
image: python:3.13-slim
volumes:
- name: uv-cache
path: /root/.cache/uv
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 .
- name: test
image: python:3.13-slim
volumes:
- name: uv-cache
path: /root/.cache/uv
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 python install 3.13
- uv sync --all-extras --dev
- uv run 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
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 python install 3.13
- uv sync --all-extras --dev
- uv build
- ls -lh dist