Skip to content

Commit

Permalink
Merge pull request #533 from DH-IT-Portal-Development/ci/check_missin…
Browse files Browse the repository at this point in the history
…g_migrations

Add CI check for missing migrations
  • Loading branch information
tymees authored Oct 6, 2023
2 parents 57a4794 + ca9199d commit 3273943
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/check-missing-migrations.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .github/workflows/django-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3273943

Please sign in to comment.