Check DB migrations in github ci

This commit is contained in:
Jonathan Metz 2024-08-24 21:14:34 -07:00
parent f947c612fa
commit 0f21e3aeb1

View File

@ -74,6 +74,9 @@ jobs:
- name: Build the docs
run: docker compose -f docker-compose.docs.yml build docs
- name: Check DB Migrations
run: docker compose -f docker-compose.local.yml run --rm django python manage.py makemigrations --check
- name: Run DB Migrations
run: docker compose -f docker-compose.local.yml run --rm django python manage.py migrate
@ -98,6 +101,12 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements/local.txt
- name: Check DB Migrations
run: python manage.py makemigrations --check
- name: Run DB Migrations
run: python manage.py migrate
- name: Test with pytest
run: pytest
{%- endif %}