parent
bc585a1c60
commit
de611a5a14
@ -0,0 +1,44 @@
|
||||
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
|
||||
|
@ -0,0 +1,12 @@
|
||||
asgiref==3.7.2
|
||||
crispy-tailwind==0.5.0
|
||||
Django==4.2.3
|
||||
django-browser-reload==1.11.0
|
||||
django-crispy-forms==2.0
|
||||
django-tailwind==3.6.0
|
||||
gunicorn==21.2.0
|
||||
packaging==23.1
|
||||
psycopg2-binary==2.9.6
|
||||
python-dotenv==1.0.0
|
||||
sqlparse==0.4.4
|
||||
typing_extensions==4.7.1
|
Loading…
Reference in new issue