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
35 changes: 30 additions & 5 deletions .github/workflows/engine_nightly_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
if [[ "$GITHUB_HEAD_REF" != "" ]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--repository is a new option available for install.py but there is no documentation about

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very internal variable, used only by us to allow running tests also for PRs created in forks.

then
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
else
python install.py devel --repository=$GITHUB_REPOSITORY
fi
- name: Calculators and documentation tests
run: |
source ~/openquake/bin/activate
Expand All @@ -56,7 +61,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
if [[ "$GITHUB_HEAD_REF" != "" ]]
then
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
else
python install.py devel --repository=$GITHUB_REPOSITORY
fi
- name: Hazardlib tests
run: |
source ~/openquake/bin/activate
Expand All @@ -82,7 +92,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
if [[ "$GITHUB_HEAD_REF" != "" ]]
then
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
else
python install.py devel --repository=$GITHUB_REPOSITORY
fi
- name: Server 'PUBLIC' mode tests
run: |
source ~/openquake/bin/activate
Expand All @@ -107,7 +122,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
if [[ "$GITHUB_HEAD_REF" != "" ]]
then
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
else
python install.py devel --repository=$GITHUB_REPOSITORY
fi
- name: Server 'READ_ONLY' mode tests
run: |
source ~/openquake/bin/activate
Expand All @@ -132,7 +152,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
if [[ "$GITHUB_HEAD_REF" != "" ]]
then
python install.py devel --version=$GITHUB_HEAD_REF --repository=$GITHUB_REPOSITORY
else
python install.py devel --repository=$GITHUB_REPOSITORY
fi
- name: Server 'AELO' mode tests
run: |
source ~/openquake/bin/activate
Expand Down