Try this way of parallel coverage

This commit is contained in:
2021-01-27 20:21:29 +00:00
parent 5f1fd59dd2
commit 5174a442bc
2 changed files with 4 additions and 3 deletions

View File

@@ -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 }}