From c5b170c0865a32a3800404497f557faa41f6aa6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 14 Oct 2021 15:11:05 +0300 Subject: [PATCH] Exclude migrations from coverage reports --- .github/workflows/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 66f70bd6..c97f12f5 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -48,7 +48,7 @@ jobs: DB_PASSWORD: ${{ matrix.db_password }} SECRET_KEY: dummy-key run: | - coverage run --omit=*/tests/* --source=hc manage.py test + coverage run --omit=*/tests/*,*/migrations/* --source=hc manage.py test - name: Coveralls if: matrix.db == 'postgres' && matrix.python-version == '3.8' run: coveralls --service=github