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 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: