ci: Update woodpecker ci to use uv images

This commit is contained in:
Marty Oehme 2025-09-12 10:19:49 +02:00
parent ecb999a49e
commit ff6cdf3cca
Signed by: Marty
GPG key ID: 4E535BC19C61886E
3 changed files with 16 additions and 16 deletions

View file

@ -1,16 +1,16 @@
steps:
lint_ruff:
image: python
image: ghcr.io/astral-sh/uv:python3.11-trixie-slim
commands:
- pip install ruff
- python --version && poetry --version && ruff --version
- uv tool install ruff
- python --version && uv --version && ruff --version
- echo "----------------- running ruff lint ------------------"
- ruff check .
lint_black:
image: python
format_ruff:
image: ghcr.io/astral-sh/uv:python3.11-trixie-slim
commands:
- pip install black
- python --version && poetry --version && black --version
- echo "----------------- running black lint ----------------"
- black --check .
- uv tool install ruff
- python --version && uv --version && ruff --version
- echo "----------------- running ruff format ------------------"
- ruff format --check .

View file

@ -1,9 +1,9 @@
steps:
pyright:
image: nikolaik/python-nodejs
image: ghcr.io/astral-sh/uv:python3.11-trixie-slim
commands:
- npm install --global pyright
- uv sync
- python --version && uv version && pyright --version
- uv tool install pyright
- uv sync --locked
- python --version && uv --version && pyright --version
- echo "------------- running pyright typecheck -------------"
- uv run pyright

View file

@ -3,9 +3,9 @@ when:
steps:
pytest:
image: nikolaik/python-nodejs
image: ghcr.io/astral-sh/uv:python3.11-trixie-slim
commands:
- uv sync
- python --version && uv version
- uv sync --locked
- python --version && uv --version
- echo "------------- running pytest -------------"
- uv run pytest