seminaire-ci/.gitlab-ci.yml
Yohann D'ANELLO 60e09751da
Calcul de la couverture
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-26 18:47:18 +01:00

30 lines
567 B
YAML

stages:
- linting
- test
flake8:
stage: linting
image: python:3-alpine
before_script:
- pip install flake8 --no-cache-dir
script: flake8 main.py main_test.py
allow_failure: true
pylint:
stage: linting
image: python:3-alpine
before_script:
- pip install pylint --no-cache-dir
script: pylint main.py main_test.py
allow_failure: true
test:
stage: test
image: python:3-alpine
before_script:
- pip install pytest pytest-cov --no-cache-dir
script: pytest --showlocals --cov=main --cov=main_test --cov-report=term-missing .