Skip to content

Commit

Permalink
EGCETSII#43-fix: add migrations to django workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JSnow11 committed Jan 8, 2022
1 parent e7ef015 commit b7e70bf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,23 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install codacy-coverage
- name: Migrate
run: |
cd decide
python manage.py
makemigrations
python manage.py migrate
- name: Copy local_settings
run: |
cp ./decide/local_settings.example.py ./decide/local_settings.py
- name: Test administration module
run: |
python ./decide/manage.py test administration
cd decide
coverage run --branch --source=./administration/ ./manage.py test administration --keepdb --verbosity=2
coverage xml
- name: Codacy Coverage Reporter
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: decide/coverage.xml

0 comments on commit b7e70bf

Please sign in to comment.