2022-09-14 16:33:41 +00:00
|
|
|
pipeline:
|
|
|
|
flake8:
|
|
|
|
group: lint
|
2022-09-17 21:35:48 +00:00
|
|
|
image: python:3.9
|
2022-09-14 16:33:41 +00:00
|
|
|
commands:
|
|
|
|
- pip3 install flake8
|
2022-09-25 07:49:01 +00:00
|
|
|
- flake8 opdb/
|
2022-09-17 21:35:48 +00:00
|
|
|
pylint:
|
2022-09-14 16:33:41 +00:00
|
|
|
group: lint
|
2022-09-17 21:35:48 +00:00
|
|
|
image: cytopia/pylint
|
2022-09-14 16:33:41 +00:00
|
|
|
commands:
|
2022-09-17 21:35:48 +00:00
|
|
|
- pylint opdb/
|
|
|
|
|
2022-09-14 16:33:41 +00:00
|
|
|
black:
|
|
|
|
group: lint
|
|
|
|
image: pyfound/black:22.8.0
|
|
|
|
commands:
|
|
|
|
- black --check opdb/
|
2022-09-17 21:35:48 +00:00
|
|
|
|
|
|
|
test-py3.9:
|
|
|
|
group: test
|
|
|
|
image: python:3.9
|
2022-09-17 21:43:54 +00:00
|
|
|
commands: &test_commands
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y postgresql
|
2022-09-17 21:35:48 +00:00
|
|
|
- pip3 install mypy .[testing]
|
|
|
|
- make mypy
|
2022-09-17 21:43:54 +00:00
|
|
|
- adduser pytest
|
|
|
|
# pytest-postgresql runs pg_ctl, which refuses to run as root
|
|
|
|
- su pytest -c 'make pytest'
|
2022-09-17 21:35:48 +00:00
|
|
|
test-py3.10:
|
|
|
|
group: test
|
|
|
|
image: python:3.10
|
2022-09-17 21:43:54 +00:00
|
|
|
commands: *test_commands
|