diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2145814 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +stages: + - lint + - test + +lint: + stage: lint + script: + - apt-get update -qy + - apt-get install -y python3 python3-pip + - python3 -m pip install --upgrade pip + - python3 -m pip install -r requirements.txt + - python3 -m black --check . + - python3 -m isort --check . + - python3 -m flake8 + - python3 -m pylint app + - python3 -m mypy . + +test: + stage: test + script: + - apt-get update -qy + - apt-get install -y python3 python3-pip + - python3 -m pip install --upgrade pip + - python3 -m pip install -r requirements.txt + - python3 -m pytest |