From 35d4334627d8c2a9e8bfe0cb174275fa53a0b88e Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Sun, 5 Dec 2021 00:11:18 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b6d6ed0..16ad9ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,21 +1,26 @@ +variables: + PIP_CACHE_DIR: "${CI_PROJECT_DIR}/.cache/pip" + default: image: nikolaik/python-nodejs:python3.9-nodejs16 cache: paths: - - ~/.cache/pip/ + - .cache/pip + - .venv before_script: + - poetry config settings.virtualenvs.in-project true - poetry install django-migrations: stage: build script: - - python3 manage.py migrate - - python3 manage.py check + - poetry run python manage.py migrate + - poetry run python manage.py check tests: stage: test script: - - pytest -v + - poetry run pytest -v deploy: stage: deploy