Disable --parallel for test runs calculating coverage
This commit is contained in:
parent
b941a09bcf
commit
2bbb3079b4
1 changed files with 4 additions and 2 deletions
|
|
@ -121,6 +121,8 @@ jobs:
|
||||||
evennia migrate
|
evennia migrate
|
||||||
evennia collectstatic --noinput
|
evennia collectstatic --noinput
|
||||||
|
|
||||||
|
# OBS - it's important to not run the coverage tests with --parallel, it messes up the coverage
|
||||||
|
# calculation!
|
||||||
- name: Run test suite with coverage
|
- name: Run test suite with coverage
|
||||||
if: matrix.TESTING_DB == 'sqlite3' && matrix.python-version == '3.10'
|
if: matrix.TESTING_DB == 'sqlite3' && matrix.python-version == '3.10'
|
||||||
working-directory: testing_mygame
|
working-directory: testing_mygame
|
||||||
|
|
@ -130,13 +132,13 @@ jobs:
|
||||||
--omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service \
|
--omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service \
|
||||||
../bin/unix/evennia test \
|
../bin/unix/evennia test \
|
||||||
--settings=settings \
|
--settings=settings \
|
||||||
--parallel 4 \
|
|
||||||
--timing \
|
--timing \
|
||||||
evennia
|
evennia
|
||||||
coverage xml
|
coverage xml
|
||||||
coverage report
|
|
||||||
coverage --version
|
coverage --version
|
||||||
|
coverage report | grep TOTAL
|
||||||
|
|
||||||
|
# For other runs, run tests in parallel
|
||||||
- name: Run test suite
|
- name: Run test suite
|
||||||
if: matrix.TESTING_DB != 'sqlite3' || matrix.python-version != '3.10'
|
if: matrix.TESTING_DB != 'sqlite3' || matrix.python-version != '3.10'
|
||||||
working-directory: testing_mygame
|
working-directory: testing_mygame
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue