Skip to content

Commit

Permalink
spack-reusable: adapted the workflow for spack-0.22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslg committed Oct 28, 2024
1 parent 6c89d07 commit 057b431
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/spack-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
spack add python@3
spack add py-pytest
# Must set a version number > last version to take right variants in recipes
spack develop -p $GITHUB_WORKSPACE --no-clone ${{ github.event.repository.name }}@999
export version_number=`spack info ${{ github.event.repository.name }} | grep -A 1 "Preferred version:" | tail -n 1 | awk {'print $1'}`
echo $version_number
spack develop -p $GITHUB_WORKSPACE --no-clone ${{ github.event.repository.name }}@$version_number
spack concretize --reuse
spack install -v --test=root
Expand All @@ -54,7 +56,8 @@ jobs:
spack env activate ci-env
spack load python
spack load py-pytest
spack load ${{ github.event.repository.name }}@999
export version_number=`spack info ${{ github.event.repository.name }} | grep -A 1 "Preferred version:" | tail -n 1 | awk {'print $1'}`
spack load ${{ github.event.repository.name }}@$version_number
# trace for logs
python --version
Expand All @@ -64,7 +67,7 @@ jobs:
echo $PYTHONPATH
# set PYTHONPATH variable
export PACKAGE_PATH=$PACKAGE_PATH/lib/python3.10/site-packages
export PACKAGE_PATH=$PACKAGE_PATH/lib/python3.11/site-packages
export PYTHONPATH=$PYTHONPATH:$PACKAGE_PATH
echo $PYTHONPATH
Expand Down

0 comments on commit 057b431

Please sign in to comment.