Skip to content

Commit

Permalink
Activate venv at the beginning of each step
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed Aug 3, 2023
1 parent 9900699 commit 1c12a98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/macos_m1_monterey_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
- name: Run demos to test installation
run: |
set -x
source ~/openquake/bin/activate
oq info venv
oq info cfg
cd /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/demos
Expand All @@ -102,29 +103,34 @@ jobs:
- name: Run tests for calculators and advanced manual to test installation
if: always()
run: |
source ~/openquake/bin/activate
cd /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/
pytest --doctest-modules --disable-warnings --color=yes --durations=10 openquake/calculators && pytest doc/adv-manual/*.rst
- name: Run tests for hazardlib, sep, commands, engine, hmtk, risklib, commonlib and baselib to test installation
if: always()
run: |
source ~/openquake/bin/activate
cd /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/openquake/
pytest --doctest-modules --disable-warnings --color=yes --durations=10 hazardlib sep commands engine hmtk risklib commonlib baselib
- name: Run tests for the engine server in public mode to test installation
if: always()
run: |
source ~/openquake/bin/activate
cd /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/
OQ_APPLICATION_MODE=public ./openquake/server/manage.py test tests.test_public_mode
- name: Run tests for the engine server in read-only mode to test installation
if: always()
run: |
source ~/openquake/bin/activate
cd /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/
OQ_APPLICATION_MODE=read_only ./openquake/server/manage.py test tests.test_read_only_mode
- name: Run tests for the engine server in aelo mode to test installation
if: always()
run: |
source ~/openquake/bin/activate
cd /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/
OQ_APPLICATION_MODE=aelo OQ_CONFIG_FILE=openquake/server/tests/data/openquake.cfg ./openquake/server/manage.py test tests.test_aelo_mode

0 comments on commit 1c12a98

Please sign in to comment.