28 lines
519 B
YAML
28 lines
519 B
YAML
variables:
|
|
PIP_CACHE_DIR: "${CI_PROJECT_DIR}/.cache/pip"
|
|
|
|
default:
|
|
image: nikolaik/python-nodejs:python3.9-nodejs16
|
|
cache:
|
|
paths:
|
|
- .cache/pip
|
|
- .venv
|
|
before_script:
|
|
- poetry config virtualenvs.in-project true
|
|
- poetry install
|
|
|
|
django-migrations:
|
|
stage: build
|
|
script:
|
|
- poetry run python manage.py migrate
|
|
- poetry run python manage.py check
|
|
|
|
tests:
|
|
stage: test
|
|
script:
|
|
- poetry run pytest -v
|
|
|
|
deploy:
|
|
stage: deploy
|
|
script:
|
|
- echo "TODO run the fabric script" |