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