Skip to content

Commit

Permalink
EGCETSII#43-fix: flush db before migrating and testing in the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JSnow11 committed Jan 9, 2022
1 parent 8387186 commit faa2258
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ jobs:
- name: Migrate
run: |
cd decide
python manage.py flush --noinput
python manage.py sqlflush
python manage.py makemigrations
python manage.py migrate
- name: Test administration module
run: |
cd decide
coverage run --branch --source=./administration/ ./manage.py test administration --settings=decide.settings --keepdb -v 2
coverage run --branch --source=./administration/ ./manage.py test administration --settings=decide.settings -v 2
coverage xml
- name: Codacy Coverage Reporter
uses: codacy/[email protected]
Expand Down

0 comments on commit faa2258

Please sign in to comment.