ci: 👷 Add workflow.yaml
This commit is contained in:
parent
c2e6896888
commit
bea10df466
1 changed files with 32 additions and 0 deletions
32
.woodpecker/workflow.yaml
Normal file
32
.woodpecker/workflow.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue