only cover 3.10/sqlite

This commit is contained in:
Alessandro Ogier 2022-08-03 19:06:03 +02:00
parent 03425df669
commit 6463d087ea

View file

@ -118,9 +118,10 @@ jobs:
evennia migrate
evennia collectstatic --noinput
- name: Run test suite
- name: Run test suite with coverage
if: matrix.TESTING_DB == 'sqlite3' && matrix.python-version == '3.10'
working-directory: testing_mygame
run: |
cd testing_mygame
coverage run \
--source=../evennia \
--omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service \
@ -132,6 +133,17 @@ jobs:
evennia
coverage xml
- name: Run test suite
if: matrix.TESTING_DB != 'sqlite3' || matrix.python-version != '3.10'
working-directory: testing_mygame
run: |
evennia test \
--settings=settings \
--keepdb \
--parallel 4 \
--timing \
evennia
# we only want to run coverall/codacy once, so we only do it for one of the matrix combinations
# it's also not critical if pushing to either service fails (happens for PRs since env is not
# available outside of the evennia org)