From c2fefc4362f14d547845d317828085e441c1462e Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 24 Sep 2021 21:38:54 +0200 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e86df46 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +stages: + - test-lint-format + +.job_setup: + image: python:3.9 + before_script: + - pip install -r requirements.txt + +pylint: + extends: + - .job_setup + stage: test-lint-format + script: + - pylint src/ test/ + +autopep8: + extends: + - .job_setup + stage: test-lint-format + script: + - autopep8 --recursive --diff src/ test/ + +pytest: + extends: + - .job_setup + stage: test-lint-format + script: + - pytest --cov=src/ + - coverage xml + artifacts: + reports: + cobertura: coverage.xml