teilchensammler-cli/.woodpecker/workflow.yaml
bronsen 5609470af2
Some checks failed
ci/woodpecker/push/workflow/2 Pipeline failed
ci/woodpecker/push/workflow/1 Pipeline failed
[ci] perhaps /bin/sh prefers . over source
2025-12-09 23:31:40 +01:00

32 lines
801 B
YAML

when:
- event: push
branch: main
- event: pull_request
- event: tag
matrix:
PYTHON_VERSION:
- 3.14
- 3.13
# - 3.12
steps:
- name: Lint python code
image: pipelinecomponents/ruff
commands:
- ruff check .
- name: Lint markdown files
image: pipelinecomponents/markdownlint-cli2
commands:
- markdownlint-cli2 .
# currently doesn't work and bronsen can't be arsed to fix
- name: Run Tests
image: docker.io/astral/uv:python${PYTHON_VERSION}-trixie-slim
commands:
- python -m venv venv
- . venv/bin/activate
- python -m pip install -r requirements.txt -r requirements.dev.txt
- python -m pytest tests.py
# coverage: uv run pytest tests.py --cov-report= --cov=src # no cov report on terminal: useful for CI