ci: 👷 Add workflow.yaml
Some checks failed
ci/woodpecker/push/workflow/1 Pipeline failed
ci/woodpecker/push/workflow/2 Pipeline failed

This commit is contained in:
bronsen 2025-12-05 17:21:21 +01:00
parent c2e6896888
commit bea10df466

32
.woodpecker/workflow.yaml Normal file
View file

@ -0,0 +1,32 @@
when:
- event: push
branch: main
- event: pull_request
- event: tag
matrix:
PYTHON_VERSION:
- 3.14
- 3.13
# - 3.12
variables:
- UV_VERSION: "latest"
- UV_BASE_LAYER: "trixie-slim"
steps:
- name: Lint python code
image: pipelinecomponents/ruff
commands:
- ruff check .
- name: Lint markdown files
image: pipelinecomponents/markdownlint-cli2
commands:
- markdownlint-cli2 .
- name: Run Tests
image: ghcr.io/astral-uv/uv:${UV_VERSION}-python${PYTHON_VERSION}-${UV_BASE_LAYER}
commands:
- uv install
- uv run pytest tests.py