opdb/.woodpecker.yml

34 lines
615 B
YAML

pipeline:
install-linters:
image: python:${PYTHON_VERSION}
commands:
- pip3 install flake8 mypy black
flake8:
group: lint
image: python:${PYTHON_VERSION}
commands:
- flake8 opdb/
mypy:
group: lint
image: python:${PYTHON_VERSION}
commands:
- mypy opdb
black:
group: lint
image: python:${PYTHON_VERSION}
commands:
- black --check opdb/
install:
image: python:${PYTHON_VERSION}
commands:
- pip3 install .
test:
image: python:${PYTHON_VERSION}
commands:
- pytest
matrix:
PYTHON_VERSION:
- 3.7
- 3.10