From 124f0300cf1927d85abd56acf925c8674f3b976e Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Fri, 15 Apr 2022 14:39:51 -0400 Subject: [PATCH] Add Test job --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d62ad1b..9631211 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - build + - test buiild job: stage: build @@ -13,4 +14,17 @@ buiild job: - pip3 install --upgrade setuptools - pip3 install Flask gunicorn pytest pytest-cov - pip3 install pendulum + +test job: + stage: test + image: python:3-buster + script: + - export PYTHONPATH=. + - export FLASK_APP=period + - apt-get update -qy + - apt-get install -y python3-dev python3-pip + - pip3 install --upgrade pip + - pip3 install --upgrade setuptools + - pip3 install Flask gunicorn pytest pytest-cov + - pip3 install pendulum - pytest tests --cov --cov-report term --cov-report html \ No newline at end of file