Skip to content

Commit

Permalink
Check pending migrations in CI (#183)
Browse files Browse the repository at this point in the history
Add step to CI to check if there are any migrations that should've been created and were not created (without creating them)
  • Loading branch information
fmrsabino authored Aug 2, 2021
1 parent 318e49d commit bb12c04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Check pending migrations
run: python src/manage.py makemigrations --check --dry-run
- name: Run migrations
run: python src/manage.py migrate
- name: Django System Check
Expand Down

0 comments on commit bb12c04

Please sign in to comment.