ci: consolidate woodpecker pipelines, fix global when syntax, clean pyproject.toml
Some checks failed
ci/woodpecker/pr/pipeline Pipeline failed
Some checks failed
ci/woodpecker/pr/pipeline Pipeline failed
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
when:
|
when:
|
||||||
- event: [push, pull_request]
|
event: [push, pull_request]
|
||||||
branch: [dev, main, master]
|
branch: [dev, main, master]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: deps
|
- name: deps
|
||||||
@@ -22,7 +22,6 @@ steps:
|
|||||||
depends_on: [deps]
|
depends_on: [deps]
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv sync --no-dev --group lints --group tests --group types
|
|
||||||
- uv run ruff check .
|
- uv run ruff check .
|
||||||
- uv run ruff format --check .
|
- uv run ruff format --check .
|
||||||
- uv run isort --check-only .
|
- uv run isort --check-only .
|
||||||
@@ -36,7 +35,6 @@ steps:
|
|||||||
depends_on: [deps]
|
depends_on: [deps]
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv sync --no-dev --group lints --group tests --group types
|
|
||||||
- uv run mypy .
|
- uv run mypy .
|
||||||
|
|
||||||
- name: test-unit
|
- name: test-unit
|
||||||
@@ -48,12 +46,8 @@ steps:
|
|||||||
depends_on: [deps]
|
depends_on: [deps]
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv sync --no-dev --group lints --group tests --group types
|
|
||||||
- uv run pytest tests/unit/ --no-cov
|
- uv run pytest tests/unit/ --no-cov
|
||||||
|
|
||||||
# E2E tests require a running server and Playwright browser.
|
|
||||||
# They are kept separate because they need the full dev dependency set
|
|
||||||
# and a longer-lived test environment.
|
|
||||||
- name: test-e2e
|
- name: test-e2e
|
||||||
image: mcr.microsoft.com/playwright/python:v1.51.0
|
image: mcr.microsoft.com/playwright/python:v1.51.0
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user