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

This commit is contained in:
2025-10-24 21:44:44 +01:00
parent 4e1233e9e9
commit e215ba489a

View File

@@ -6,7 +6,6 @@ name: python-uv-ci
trigger:
event: [ pull_request ]
# Cache to speed up uv between steps (optional but nice)
volumes:
- name: uv-cache
temp: {}
@@ -19,21 +18,13 @@ steps:
path: /root/.cache/uv
environment:
UV_NO_SYNC_PROGRESS: "1"
PYVER: "3.13"
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 "$PYVER"
- |
if [ -f pyproject.toml ] && grep -q "\[tool\.uv\]" pyproject.toml; then
uv sync --all-extras --dev
else
uv pip install -e ".[dev]" || true
[ -f requirements.txt ] && uv pip install -r requirements.txt || true
fi
- uv pip install ruff mypy pytest pytest-cov
- uv python install 3.13
- uv sync --all-extras --dev
- uv run ruff check .
- uv run mypy --ignore-missing-imports .
@@ -44,20 +35,12 @@ steps:
path: /root/.cache/uv
environment:
UV_NO_SYNC_PROGRESS: "1"
PYVER: "3.13"
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 "$PYVER"
- |
if [ -f pyproject.toml ] && grep -q "\[tool\.uv\]" pyproject.toml; then
uv sync --all-extras --dev
else
uv pip install -e ".[dev]" || true
[ -f requirements.txt ] && uv pip install -r requirements.txt || true
fi
- uv pip install pytest pytest-cov
- 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
@@ -67,18 +50,11 @@ steps:
path: /root/.cache/uv
environment:
UV_NO_SYNC_PROGRESS: "1"
PYVER: "3.13"
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 "$PYVER"
- |
if [ -f pyproject.toml ] && grep -q "\[tool\.uv\]" pyproject.toml; then
uv sync --all-extras --dev
else
uv pip install -e ".[dev]" || true
[ -f requirements.txt ] && uv pip install -r requirements.txt || true
fi
- uv python install 3.13
- uv sync --all-extras --dev
- uv build
- ls -lh dist