From ca9199dce47f48af4fde5bb3b759f8733eda9199 Mon Sep 17 00:00:00 2001 From: "Mees, T.D. (Ty)" Date: Mon, 4 Sep 2023 13:36:04 +0200 Subject: [PATCH] ci: add workflow to check for missing migrations --- .../workflows/check-missing-migrations.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/check-missing-migrations.yml diff --git a/.github/workflows/check-missing-migrations.yml b/.github/workflows/check-missing-migrations.yml new file mode 100644 index 000000000..1d5423359 --- /dev/null +++ b/.github/workflows/check-missing-migrations.yml @@ -0,0 +1,24 @@ +name: Check for missing migrations + +on: + pull_request: +jobs: + run-check: + runs-on: ubuntu-latest + steps: + - name: Install OS dependencies + run: | + sudo apt-get update + sudo apt-get install libldap2-dev libsasl2-dev libssl-dev gettext poppler-utils poppler-data libpoppler-cpp-dev + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Check for missing migrations + run: | + python manage.py makemigrations --check --dry-run