grouped coverage testing steps together
This commit is contained in:
parent
37ac4d55a4
commit
868b3bdaeb
1 changed files with 12 additions and 12 deletions
24
.github/workflows/github_action_test_suite.yml
vendored
24
.github/workflows/github_action_test_suite.yml
vendored
|
|
@ -62,6 +62,18 @@ jobs:
|
||||||
evennia migrate
|
evennia migrate
|
||||||
evennia collectstatic --noinput
|
evennia collectstatic --noinput
|
||||||
|
|
||||||
|
# For non-coverage tests, run them in parallel.
|
||||||
|
- name: Run test suite
|
||||||
|
if: ! ${{ matrix.coverage-test }}
|
||||||
|
working-directory: testing_mygame
|
||||||
|
run: |
|
||||||
|
evennia test \
|
||||||
|
--settings=settings \
|
||||||
|
--keepdb \
|
||||||
|
--parallel 4 \
|
||||||
|
--timing \
|
||||||
|
evennia
|
||||||
|
|
||||||
# OBS - it's important to not run the coverage tests with --parallel, it messes up the coverage
|
# OBS - it's important to not run the coverage tests with --parallel, it messes up the coverage
|
||||||
# calculation!
|
# calculation!
|
||||||
- name: Run test suite with coverage
|
- name: Run test suite with coverage
|
||||||
|
|
@ -79,18 +91,6 @@ jobs:
|
||||||
coverage --version
|
coverage --version
|
||||||
coverage report | grep TOTAL
|
coverage report | grep TOTAL
|
||||||
|
|
||||||
# For other runs, run tests in parallel
|
|
||||||
- name: Run test suite
|
|
||||||
if: ! ${{ matrix.coverage-test }}
|
|
||||||
working-directory: testing_mygame
|
|
||||||
run: |
|
|
||||||
evennia test \
|
|
||||||
--settings=settings \
|
|
||||||
--keepdb \
|
|
||||||
--parallel 4 \
|
|
||||||
--timing \
|
|
||||||
evennia
|
|
||||||
|
|
||||||
# we only want to run coverall once, so we only do it for the designated matrix combination(s)
|
# we only want to run coverall once, so we only do it for the designated matrix combination(s)
|
||||||
# it's also not critical if pushing to either service fails (happens for PRs since env is not
|
# it's also not critical if pushing to either service fails (happens for PRs since env is not
|
||||||
# available outside of the evennia org)
|
# available outside of the evennia org)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue