Skip to content

Commit

Permalink
Check DB migrations in GitHub CI (#5322)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymetz authored Aug 26, 2024
1 parent 6e1bab9 commit 2a6d2cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions {{cookiecutter.project_slug}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 %}

0 comments on commit 2a6d2cc

Please sign in to comment.