diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 01630912c52ccc728870d72c33a8f02cdf7c2c7f..f2f1bd6263e917ff4c9c78f7d851b61cacc6c57f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -307,11 +307,23 @@ deploy-theodolite: # Theodolite SLO Checker: Lag Trend +test-slo-checker-lag-trend: + stage: test + image: python:3.7-slim + tags: + - exec-docker + script: + - cd slope-evaluator + - pip install -r requirements.txt + - cd app + - python -m unittest + deploy-slo-checker-lag-trend: stage: deploy extends: - .dind - needs: [] + needs: + - test-slo-checker-lag-trend script: - DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//') - docker build --pull -t theodolite-slo-checker-lag-trend slope-evaluator diff --git a/slope-evaluator/requirements.txt b/slope-evaluator/requirements.txt index 6934f4b780a4b7c558c5ce8f1718171e8bec4586..670815f35b18361951a2fa7b2142eee6bc86b01d 100644 --- a/slope-evaluator/requirements.txt +++ b/slope-evaluator/requirements.txt @@ -2,3 +2,4 @@ fastapi==0.55.1 scikit-learn==0.20.3 pandas==1.0.3 uvicorn +requests