From 5174a442bc9b9d2dd327549ab6cd9002e402849a Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Wed, 27 Jan 2021 20:21:29 +0000 Subject: [PATCH] Try this way of parallel coverage --- .github/workflows/django.yml | 4 ++-- requirements.txt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 372b9915..039af34e 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -46,7 +46,7 @@ jobs: python manage.py check python manage.py makemigrations --check --dry-run - name: Run Tests - run: coverage run -m pytest -n 8 ${{ matrix.test-group }} + run: coverage run -p -m pytest --cov=${{ matrix.test-group }} --cov-append -n 8 ${{ matrix.test-group }}/tests/ - uses: actions/upload-artifact@v2 if: failure() with: @@ -54,7 +54,7 @@ jobs: path: screenshots/ retention-days: 5 - name: Upload Coverage - run: coveralls --service=github + run: coverage combine && coveralls --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_FLAG_NAME: ${{ matrix.test-group }} diff --git a/requirements.txt b/requirements.txt index abe17093..00ad4091 100644 --- a/requirements.txt +++ b/requirements.txt @@ -49,8 +49,9 @@ PyPOM==2.2.0 python-dateutil==2.8.1 pytoml==0.1.21 pytz==2020.5 -pytest_django==4.1.0 +pytest-django==4.1.0 pytest-xdist==2.2.0 +pytest-cov==2.11.1 raven==6.10.0 reportlab==3.5.60 requests==2.25.1