From 3d92d6f765a4e7e1d1ebde13a7cb25b6106ec1a4 Mon Sep 17 00:00:00 2001 From: "Mees, T.D. (Ty)" Date: Mon, 4 Sep 2023 13:33:58 +0200 Subject: [PATCH 1/2] ci: also run tests on acceptation --- .github/workflows/django-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-tests.yml index 79829b7da..283b3da95 100644 --- a/.github/workflows/django-tests.yml +++ b/.github/workflows/django-tests.yml @@ -2,9 +2,9 @@ name: Django Tests on: push: - branches: [ develop, ] + branches: [ develop, acceptation ] pull_request: - branches: [ develop, master, ] + branches: [ develop, acceptation, master, ] jobs: build: 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 2/2] 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