Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,40 @@ on:
branches: [ master ]
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: "Run the build with tmate debugging enabled"
required: false
default: false

jobs:
test:
name: pytest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
- uses: actions/checkout@v6
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: 3.11
- name: Install OQ and dependencies
python-version: 3.12
- name: Install OQ
run: |
sudo apt-get install libspatialindex-dev
git clone --depth=1 https://github.com/gem/oq-engine.git
git clone -b master https://github.com/gem/oq-engine.git
cd oq-engine
python ./install.py devel
cd ..
- name: Setup debugging session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 45
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- name: Install hamlet on OQ venv
run: |
pwd
source $HOME/openquake/bin/activate
pip install h3
pip install -r requirements.txt
pip install -e .
deactivate
Expand Down
Loading