30 lines
653 B
YAML
30 lines
653 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 .
|
|
|
|
- name: Run Tests
|
|
image: python:${PYTHON_VERSION}-slim
|
|
commands:
|
|
- python -m venv venv
|
|
- . venv/bin/activate
|
|
- python -m pip install --disable-pip-version-check --no-input --quiet -r requirements.txt -r requirements.dev.txt
|
|
- python -m pytest tests.py
|