32 lines
608 B
YAML
32 lines
608 B
YAML
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
|