From aa26b1964754a539cc1dff423df2e83da7e8e275 Mon Sep 17 00:00:00 2001 From: Dustin Ingram Date: Tue, 14 Feb 2023 21:25:22 +0000 Subject: [PATCH] Add a check in CI for missing migrations --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f34cc73bb..97298ffca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,11 @@ jobs: run: | pip install -U pip setuptools wheel pip install -r dev-requirements.txt + - name: Check for ungenerated database migrations + run: | + python manage.py makemigrations --check --dry-run + env: + DATABASE_URL: postgres://postgres:postgres@localhost:5432/pythonorg - name: Run Tests run: | python -Wd -m coverage run manage.py test -v2