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
|
|
|
|
script: flake8 main.py
|
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
|
|
|
|
pylint:
|
|
|
|
stage: linting
|
|
|
|
image: python:3-alpine
|
|
|
|
before_script:
|
|
|
|
- pip install pylint --no-cache-dir
|
|
|
|
script: pylint main.py
|
|
|
|
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:
|
|
|
|
- pip install pytest --no-cache-dir
|
2021-01-26 16:07:12 +00:00
|
|
|
script: pytest --show-locals .
|