From d6ce4eb43e3c0df1ea0238bfd8b87ecd5184d555 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Mon, 8 Jul 2024 14:15:43 +0200 Subject: [PATCH] Install develop and latest version. --- .github/workflows/build-spack.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-spack.yml b/.github/workflows/build-spack.yml index 665ec23c..51e96d6e 100644 --- a/.github/workflows/build-spack.yml +++ b/.github/workflows/build-spack.yml @@ -24,7 +24,7 @@ jobs: - name: Move Package Script run: | cp -r spack/repo/packages/py-pyprecice/ /py-pyprecice-repo/packages/ - - name: Try to build py-pyprecice with spack and test it + - name: Try to build py-pyprecice@develop with spack and test it run: | . /opt/spack/share/spack/setup-env.sh spack env activate ci && spack arch @@ -32,4 +32,13 @@ jobs: spack add pyprecice.test.py-pyprecice@develop && spack develop pyprecice.test.py-pyprecice@develop spack install && spack find spack load py-pyprecice + BINDINGS_VERSION=$(python3 -c "import precice; print(precice.__version__)") && echo "Installed version of bindings is ${BINDINGS_VERSION}" + - name: Try to build py-pyprecice@latest with spack and test it + run: | + . /opt/spack/share/spack/setup-env.sh + spack env activate ci && spack arch + spack remove py-pyprecice + spack add pyprecice.test.py-pyprecice@latest && spack develop pyprecice.test.py-pyprecice@latest + spack install && spack find + spack load py-pyprecice BINDINGS_VERSION=$(python3 -c "import precice; print(precice.__version__)") && echo "Installed version of bindings is ${BINDINGS_VERSION}" \ No newline at end of file