Skip to content

Commit

Permalink
Run the installation after downloading install.py via curl
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed Jan 11, 2024
1 parent d123fb5 commit 6e91ce4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/qgis_383.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ jobs:
if [ "$(git ls-remote --heads https://github.com/gem/oq-engine.git ${ENGINE_BR})" == "" ]; then
ENGINE_BR='master';
fi
git clone -b $ENGINE_BR --depth=1 https://github.com/gem/oq-engine.git
PY_VER=`echo py${{ matrix.python-version }} | tr -d .`
echo $PY_VER
cd oq-engine
curl -O https://raw.githubusercontent.com/gem/oq-engine/master/install.py
ls -lrt install.py
echo ${ENGINE_BR}
if [ "$(git ls-remote --heads https://github.com/gem/oq-engine.git ${ENGINE_BR})" == "" ]; then
exit 1
fi
python3 install.py user --version=${ENGINE_BR}
export PIP_DEFAULT_TIMEOUT=100
python3 install.py user --version $ENGINE_BR
cd ..
echo "Restore OQ-Engine demos for $ENGINE_BR branch "
source $HOME/openquake/bin/activate
oq reset -y
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/qgis_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ jobs:
if [ "$(git ls-remote --heads https://github.com/gem/oq-engine.git ${ENGINE_BR})" == "" ]; then
ENGINE_BR='master';
fi
git clone -b $ENGINE_BR --depth=1 https://github.com/gem/oq-engine.git
PY_VER=`echo py${{ matrix.python-version }} | tr -d .`
echo $PY_VER
cd oq-engine
curl -O https://raw.githubusercontent.com/gem/oq-engine/master/install.py
ls -lrt install.py
echo ${ENGINE_BR}
if [ "$(git ls-remote --heads https://github.com/gem/oq-engine.git ${ENGINE_BR})" == "" ]; then
exit 1
fi
python3 install.py user --version=${ENGINE_BR}
export PIP_DEFAULT_TIMEOUT=100
python3 install.py user --version $ENGINE_BR
cd ..
echo "Restore OQ-Engine demos for $ENGINE_BR branch "
source $HOME/openquake/bin/activate
oq reset -y
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/qgis_ltr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ jobs:
if [ "$(git ls-remote --heads https://github.com/gem/oq-engine.git ${ENGINE_BR})" == "" ]; then
ENGINE_BR='master';
fi
git clone -b $ENGINE_BR --depth=1 https://github.com/gem/oq-engine.git
PY_VER=`echo py${{ matrix.python-version }} | tr -d .`
echo $PY_VER
cd oq-engine
curl -O https://raw.githubusercontent.com/gem/oq-engine/master/install.py
ls -lrt install.py
echo ${ENGINE_BR}
if [ "$(git ls-remote --heads https://github.com/gem/oq-engine.git ${ENGINE_BR})" == "" ]; then
exit 1
fi
python3 install.py user --version=${ENGINE_BR}
export PIP_DEFAULT_TIMEOUT=100
python3 install.py user --version $ENGINE_BR
cd ..
echo "Restore OQ-Engine demos for $ENGINE_BR branch "
source $HOME/openquake/bin/activate
oq reset -y
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/qgis_ltr_engine_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ jobs:
ENGINE_BR=$IRMT_BR
curl -O https://raw.githubusercontent.com/gem/oq-engine/master/install.py
ls -lrt install.py
echo ${branch}
echo ${ENGINE_BR}
if [ "$(git ls-remote --heads https://github.com/gem/oq-engine.git ${ENGINE_BR})" == "" ]; then
exit 1
fi
python3 install.py user --version=${branch}
PY_VER=`echo py${{ matrix.python-version }} | tr -d .`
echo $PY_VER
python3 install.py user --version=${ENGINE_BR}
export PIP_DEFAULT_TIMEOUT=100
echo "Restore OQ-Engine demos for $ENGINE_BR branch "
source $HOME/openquake/bin/activate
Expand All @@ -74,7 +72,7 @@ jobs:
set -x
IRMT_BR=${{ matrix.RELEASE_VERSION }}
ENGINE_BR=$IRMT_BR
docker exec qgis sh -c "git clone -q -b $ENGINE_BR --depth=1 https://github.com/gem/oq-engine.git && echo 'Running against oq-engine/$GITHUB_BR'"
docker exec qgis sh -c "git clone -q -b $ENGINE_BR --depth=1 https://github.com/gem/oq-engine.git && echo 'Running against oq-engine/$ENGINE_BR'"
docker exec qgis sh -c "qgis_setup.sh svir"
docker exec -t qgis sh -c "cd /tests_directory && qgis_testrunner.sh svir.test.integration.test_drive_oq_engine"
- name: ㏒ Display web logs
Expand Down

0 comments on commit 6e91ce4

Please sign in to comment.