From 37c0890a4b09adf313714b578caec65965e6f57c Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Thu, 28 Jan 2021 03:59:18 +0000 Subject: [PATCH] Belt and braces approach to coverage --- .github/workflows/django.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 211174e2..4a8432e4 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -36,7 +36,7 @@ jobs: - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install pycodestyle coverage coveralls django_coverage_plugin + pip install pycodestyle coverage coveralls django_coverage_plugin pytest-cov pip install --upgrade --upgrade-strategy eager -r requirements.txt python manage.py collectstatic --noinput - name: Cache gulp output @@ -50,7 +50,11 @@ jobs: python manage.py check python manage.py makemigrations --check --dry-run - name: Run Tests - run: coverage run -p -m pytest -n 8 + - uses: paambaati/codeclimate-action@v2.2.4 + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + with: + coverageCommand: coverage run -m pytest --cov=PyRIGS -n 8 - uses: actions/upload-artifact@v2 if: failure() with: