mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
add: coverage to toml; workflow timeout
This commit is contained in:
parent
702d0e5703
commit
20e7a7fed8
2 changed files with 118 additions and 86 deletions
22
.github/workflows/github_action_test_suite.yml
vendored
22
.github/workflows/github_action_test_suite.yml
vendored
|
|
@ -26,6 +26,12 @@ jobs:
|
|||
TESTING_DB: "sqlite3"
|
||||
coverage-test: true
|
||||
|
||||
timeout-minutes: 35
|
||||
|
||||
env:
|
||||
UNIT_TEST_SETTINGS: "--settings=settings --keepdb --parallel 4 --timing"
|
||||
COVERAGE_TEST_SETTINGS: "--settings=settings --timing"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
|
@ -67,12 +73,7 @@ jobs:
|
|||
if: ${{ ! matrix.coverage-test }}
|
||||
working-directory: testing_mygame
|
||||
run: |
|
||||
evennia test \
|
||||
--settings=settings \
|
||||
--keepdb \
|
||||
--parallel 4 \
|
||||
--timing \
|
||||
evennia
|
||||
evennia test ${{ env.UNIT_TEST_SETTINGS }} evennia
|
||||
|
||||
# OBS - it's important to not run the coverage tests with --parallel, it messes up the coverage
|
||||
# calculation!
|
||||
|
|
@ -80,13 +81,8 @@ jobs:
|
|||
if: ${{ matrix.coverage-test }}
|
||||
working-directory: testing_mygame
|
||||
run: |
|
||||
coverage run \
|
||||
--source=evennia \
|
||||
--omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service \
|
||||
../bin/unix/evennia test \
|
||||
--settings=settings \
|
||||
--timing \
|
||||
evennia
|
||||
coverage run --rcfile=../pyproject.toml ../bin/unix/evennia test ${{ env.COVERAGE_TEST_SETTINGS }} evennia
|
||||
coverage combine
|
||||
coverage xml
|
||||
coverage --version
|
||||
coverage report | grep TOTAL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue