Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spack-reusable: adapted the workflow for spack-0.22.2 #62

Merged
merged 1 commit into from
Oct 28, 2024
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
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