ci: Update woodpecker ci to use uv images
This commit is contained in:
parent
dfc3bdea70
commit
4b6079d4a3
3 changed files with 16 additions and 16 deletions
|
|
@ -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 .
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue