Skip to content

Commit

Permalink
chore(qa): add step to check no migration is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
hamadr committed Nov 3, 2023
1 parent ff09122 commit 2d6099a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runqa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ flake8
mypy -p dalec -p dalec_prime -p dalec_example
coverage report -m
coverage erase

export DJANGO_SETTINGS_MODULE="tests.settings"
if ! django-admin makemigrations --check; then
>&2 echo "Des migrations sont manquantes et doivent être générées"
django-admin makemigrations --dry-run
exit 1
fi
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ deps =
qa: mypy
qa: types-requests
qa: nodeenv
qa: Django>=4.2,<4.3
js: nodeenv
requests
beautifulsoup4
Expand Down

0 comments on commit 2d6099a

Please sign in to comment.