Skip to content

Commit

Permalink
Merge pull request #10142 from gem/test_webui
Browse files Browse the repository at this point in the history
Add to `engine_pr_test.yml` a test starting the webui
  • Loading branch information
ptormene authored Nov 14, 2024
2 parents cb62330 + 3908b81 commit 24c4332
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/engine_pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ jobs:
source ~/openquake/bin/activate
pip install pytest https://wheelhouse.openquake.org/v3/py/rtgmpy-1.0.0-py3-none-any.whl
oq engine --upgrade-db
# Starting the webui here is not needed by test_public_mode,
# but here we also want to check that the webui starts without errors
oq webui start 127.0.0.1:8800 -s &
echo "Waiting WEBUI up on port 8800...."
while ! nc -z localhost 8800; do
sleep 5 # wait for 5 seconds before check again
done
pytest -xs --doctest-modules --disable-warnings --color=yes openquake/commands openquake/engine
# -v 2 also logs the test names
./openquake/server/manage.py test -v 2 tests.test_public_mode
Expand Down

0 comments on commit 24c4332

Please sign in to comment.