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 check
python manage.py makemigrations --check --dry-run python manage.py makemigrations --check --dry-run
- name: Run Tests - 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 - uses: actions/upload-artifact@v2
if: failure() if: failure()
with: with:
@@ -54,7 +54,7 @@ jobs:
path: screenshots/ path: screenshots/
retention-days: 5 retention-days: 5
- name: Upload Coverage - name: Upload Coverage
run: coveralls --service=github run: coverage combine && coveralls --service=github
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-group }} COVERALLS_FLAG_NAME: ${{ matrix.test-group }}

View File

@@ -49,8 +49,9 @@ PyPOM==2.2.0
python-dateutil==2.8.1 python-dateutil==2.8.1
pytoml==0.1.21 pytoml==0.1.21
pytz==2020.5 pytz==2020.5
pytest_django==4.1.0 pytest-django==4.1.0
pytest-xdist==2.2.0 pytest-xdist==2.2.0
pytest-cov==2.11.1
raven==6.10.0 raven==6.10.0
reportlab==3.5.60 reportlab==3.5.60
requests==2.25.1 requests==2.25.1