Skip to content

Commit 240865e

Browse files
authored
Add a check in CI for missing migrations (#2248)
1 parent b12479f commit 240865e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
run: |
3636
pip install -U pip setuptools wheel
3737
pip install -r dev-requirements.txt
38+
- name: Check for ungenerated database migrations
39+
run: |
40+
python manage.py makemigrations --check --dry-run
41+
env:
42+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/pythonorg
3843
- name: Run Tests
3944
run: |
4045
python -Wd -m coverage run manage.py test -v2

0 commit comments

Comments
 (0)