Add the CI/CD configuration.

This commit is contained in:
2023-07-24 14:50:16 +03:00
parent bc585a1c60
commit de611a5a14
5 changed files with 58 additions and 0 deletions
+44
View File
@@ -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
View File
+2
View File
@@ -32,4 +32,6 @@
Add the action to set the circular next status for Task items.
** 0.3.8 <2023-07-24 Mon>
Update the database to use Postgres.
** 0.3.9 <2023-07-24 Mon>
Add the CI/CD configuration.
+12
View File
@@ -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
View File