35 lines
715 B
YAML
35 lines
715 B
YAML
pipeline:
|
|
flake8:
|
|
group: lint
|
|
image: python:3.9
|
|
commands:
|
|
- pip3 install flake8
|
|
- flake8 opdb/
|
|
pylint:
|
|
group: lint
|
|
image: cytopia/pylint
|
|
commands:
|
|
- pylint opdb/
|
|
|
|
black:
|
|
group: lint
|
|
image: pyfound/black:22.8.0
|
|
commands:
|
|
- black --check opdb/
|
|
|
|
test-py3.9:
|
|
group: test
|
|
image: python:3.9
|
|
commands: &test_commands
|
|
- apt-get update
|
|
- apt-get install -y postgresql
|
|
- pip3 install mypy .[testing]
|
|
- make mypy
|
|
- adduser pytest
|
|
# pytest-postgresql runs pg_ctl, which refuses to run as root
|
|
- su pytest -c 'make pytest'
|
|
test-py3.10:
|
|
group: test
|
|
image: python:3.10
|
|
commands: *test_commands
|