You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
990 B
45 lines
990 B
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: install dependencies
|
|
image: python:3.10-slim
|
|
volumes:
|
|
- name: package_cache
|
|
path: /package_cache
|
|
commands:
|
|
- cp .env.example .env
|
|
- pip install -r dev_requirements.txt --cache-dir=/package_cache
|
|
|
|
- name: run migrations
|
|
image: python:3.10-slim
|
|
volumes:
|
|
- name: package_cache
|
|
path: /package_cache
|
|
commands:
|
|
- pip install -r dev_requirements.txt --cache-dir=/package_cache
|
|
- python manage.py migrate
|
|
|
|
- name: run tests
|
|
image: python:3.10-slim
|
|
volumes:
|
|
- name: package_cache
|
|
path: /package_cache
|
|
commands:
|
|
- pip install -r dev_requirements.txt --cache-dir=/package_cache
|
|
- python manage.py test
|
|
|
|
volumes:
|
|
- name: package_cache
|
|
temp: {}
|
|
|
|
services:
|
|
- name: postgres
|
|
image: postgres:15-alpine
|
|
environment:
|
|
POSTGRES_DB: postgres_dev
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: testpassword
|
|
|