Update .gitlab-ci.yml file

This commit is contained in:
nikolark committed 2021-12-05 00:11:18 +00:00
1 parent 5969e70e89
commit 35d4334627
1 file changed
+9 -4
+9 -4
View File
@@ -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