diff options
Diffstat (limited to 'api/.gitlab-ci.yml')
| -rw-r--r-- | api/.gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/api/.gitlab-ci.yml b/api/.gitlab-ci.yml new file mode 100644 index 00000000..d80ba836 --- /dev/null +++ b/api/.gitlab-ci.yml @@ -0,0 +1,26 @@ +image: "python:3.8" + +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" + +cache: + paths: + - .cache/pip + +stages: + - static-analysis + - test + +static-analysis: + stage: static-analysis + script: + - python --version + - pip install -r requirements.txt + - pylint opendc + +test: + stage: test + script: + - python --version + - pip install -r requirements.txt + - pytest opendc |
