2021-01-23 21:54:55 +00:00
|
|
|
image: "python:3.8"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- python --version
|
2021-02-07 16:42:52 +00:00
|
|
|
- pip3 install flake8 pytest-asyncio async_property
|
2021-01-23 21:54:55 +00:00
|
|
|
|
|
|
|
stages:
|
2021-02-07 16:42:52 +00:00
|
|
|
- test
|
2021-01-23 21:54:55 +00:00
|
|
|
|
2021-02-07 16:42:52 +00:00
|
|
|
test:
|
|
|
|
stage: test
|
2021-01-23 21:54:55 +00:00
|
|
|
script:
|
|
|
|
- flake8 --max-line-length=120 neohubapi/*.py
|
2021-02-07 16:42:52 +00:00
|
|
|
- flake8 --max-line-length=120 tests/*.py
|
2021-01-23 21:54:55 +00:00
|
|
|
- flake8 --max-line-length=120 scripts/*.py
|
2021-02-07 16:42:52 +00:00
|
|
|
- python -m pytest
|