2022-09-14 15:20:51 +00:00
|
|
|
pipeline:
|
|
|
|
flake8:
|
|
|
|
group: lint
|
|
|
|
image: python:${PYTHON_VERSION}
|
|
|
|
commands:
|
2022-09-14 16:15:49 +00:00
|
|
|
- pip3 install flake8
|
2022-09-14 16:25:50 +00:00
|
|
|
- make flake8
|
2022-09-14 15:20:51 +00:00
|
|
|
mypy:
|
|
|
|
group: lint
|
|
|
|
image: python:${PYTHON_VERSION}
|
|
|
|
commands:
|
2022-09-14 16:15:49 +00:00
|
|
|
- pip3 install mypy
|
2022-09-14 16:25:50 +00:00
|
|
|
- make mypy
|
2022-09-14 15:20:51 +00:00
|
|
|
black:
|
|
|
|
group: lint
|
2022-09-14 16:15:49 +00:00
|
|
|
image: pyfound/black:22.8.0
|
2022-09-14 15:20:51 +00:00
|
|
|
commands:
|
2022-09-14 16:26:53 +00:00
|
|
|
- black --check opdb/
|
2022-09-14 15:20:51 +00:00
|
|
|
test:
|
|
|
|
image: python:${PYTHON_VERSION}
|
|
|
|
commands:
|
2022-09-14 16:19:54 +00:00
|
|
|
- pip3 install . pytest
|
2022-09-14 16:25:50 +00:00
|
|
|
- make pytest
|
2022-09-14 15:20:51 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
PYTHON_VERSION:
|
|
|
|
- 3.7
|
|
|
|
- 3.10
|