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: default:
image: nikolaik/python-nodejs:python3.9-nodejs16 image: nikolaik/python-nodejs:python3.9-nodejs16
cache: cache:
paths: paths:
- ~/.cache/pip/ - .cache/pip
- .venv
before_script: before_script:
- poetry config settings.virtualenvs.in-project true
- poetry install - poetry install
django-migrations: django-migrations:
stage: build stage: build
script: script:
- python3 manage.py migrate - poetry run python manage.py migrate
- python3 manage.py check - poetry run python manage.py check
tests: tests:
stage: test stage: test
script: script:
- pytest -v - poetry run pytest -v
deploy: deploy:
stage: deploy stage: deploy