Skip to content

Commit

Permalink
add all tests for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioettorre committed Jul 31, 2023
1 parent c684f22 commit 94ea1b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/macos_intel_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: MacOS Intel install and test
schedule:
- cron: "0 1 * * *"
push:
branches: [ test_os ]
branches: [macos_test]

jobs:

Expand Down Expand Up @@ -37,13 +37,6 @@ jobs:
env:
BRANCH: ${{ github.event.inputs.git-ref }}
run: |
#PY_VER=`echo py${{ matrix.python-version }} | tr -d .`
#echo $PY_VER
#pip3 install -r requirements-$PY_VER-macos.txt
#pip3 install -e .\[osgeo\]
echo "sqlite3 version"
which sqlite3
sqlite3 --version
export PIP_DEFAULT_TIMEOUT=100
pip3 install -U pip wheel setuptools
#
Expand All @@ -54,15 +47,14 @@ jobs:
else
python install.py devel
fi
- name: Run demos to test installation
- name: Run demos and pytest to test installation
run: |
source ~/openquake/bin/activate
pip3 install pytest
oq --version
oq dbserver start
#pytest -vsx --color=yes ~/work/oq-engine/oq-engine/openquake/hazardlib/tests/gsim/kotha_2020_test.py
#pytest -vsx --color=yes /Users/runner/work/oq-engine/oq-engine/openquake/sep
#pytest -vs --color=yes /Users/runner/work/oq-engine/oq-engine/openquake/calculators
pytest -vs --color=yes /Users/runner/work/oq-engine/oq-engine/openquake/
sleep 2
oq engine --run ~/work/oq-engine/oq-engine/demos/risk/ClassicalDamage/job_hazard.ini
#
oq engine --run https://downloads.openquake.org/jobs/risk_test.zip
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/macos_m1_monterey_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ name: MacOS Monterey M1
required: true
schedule:
- cron: "15 12 * * *"
push:
branches: [macos_test]

jobs:

Expand Down Expand Up @@ -74,20 +76,21 @@ jobs:
else
$python install.py devel
fi
- name: Run demos to test installation
- name: Run demos and pytest to test installation
run: |
source ~/openquake/bin/activate
pip3 install pytest
oq --version
oq dbserver start
sleep 10
# test for engine
#pytest -vsx --color=yes /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/openquake/sep
#
#pytest -vsx --color=yes /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/openquake/hazardlib/tests/gsim/kotha_2020_test.py
#
#pytest -vsx --color=yes /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/openquake/calculators
pytest -vs --color=yes /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/openquake/
sleep 2
# Run calcs
oq engine --run ~/work/oq-engine/oq-engine/demos/risk/ClassicalDamage/job_hazard.ini
sleep 2
#
oq engine --run https://downloads.openquake.org/jobs/risk_test.zip
sleep 15
oq engine --run /Users/runner/runner-isolation/actions-runner/_work/oq-engine/oq-engine/demos/hazard/AreaSourceClassicalPSHA/job.ini
sleep 3
oq engine --run "https://github.com/gem/oq-engine/blob/master/openquake/server/tests/data/classical.zip?raw=true"

0 comments on commit 94ea1b4

Please sign in to comment.