From b7e70bf3c655f207936cc3559b5afc387efcc0ce Mon Sep 17 00:00:00 2001 From: Jose Nieves Date: Sun, 9 Jan 2022 00:09:34 +0100 Subject: [PATCH] #43-fix: add migrations to django workflow --- .github/workflows/django.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index b7175a7c95..08124a4cc3 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -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 \ No newline at end of file + cd decide + coverage run --branch --source=./administration/ ./manage.py test administration --keepdb --verbosity=2 + coverage xml + - name: Codacy Coverage Reporter + uses: codacy/codacy-coverage-reporter-action@v1.1.0 + with: + project-token: ${{ secrets.CODACY_API_TOKEN }} + coverage-reports: decide/coverage.xml