2021-01-26 10:54:11 +00:00
|
|
|
stages:
|
|
|
|
- linting
|
2021-01-26 15:50:52 +00:00
|
|
|
- test
|
2021-01-26 10:54:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
flake8:
|
|
|
|
stage: linting
|
|
|
|
image: python:3-alpine
|
|
|
|
before_script:
|
|
|
|
- pip install flake8 --no-cache-dir
|
2021-01-26 16:11:07 +00:00
|
|
|
script: flake8 main.py main_test.py
|
2021-01-26 10:54:11 +00:00
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
|
|
|
|
pylint:
|
|
|
|
stage: linting
|
|
|
|
image: python:3-alpine
|
|
|
|
before_script:
|
|
|
|
- pip install pylint --no-cache-dir
|
2021-01-26 16:11:07 +00:00
|
|
|
script: pylint main.py main_test.py
|
2021-01-26 10:54:11 +00:00
|
|
|
allow_failure: true
|
2021-01-26 15:50:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
image: python:3-alpine
|
2021-01-26 16:07:50 +00:00
|
|
|
before_script:
|
2021-01-26 17:47:18 +00:00
|
|
|
- pip install pytest pytest-cov --no-cache-dir
|
|
|
|
script: pytest --showlocals --cov=main --cov=main_test --cov-report=term-missing .
|