Skip to content

Commit 4ee25a7

Browse files
committed
Copy test folder before running test suite on CI
When we no longer install the test package AND want to run outside the source tree (to test the installed easybuild package) we need to retrieve the test package first.
1 parent 8513099 commit 4ee25a7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/unit_tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
build:
2626
needs: setup
2727
runs-on: ${{matrix.os || 'ubuntu-24.04'}}
28-
env:
28+
env:
2929
JOB_OS: ${{matrix.os || 'ubuntu-24.04'}}
3030
strategy:
3131
matrix:
@@ -193,6 +193,9 @@ jobs:
193193
# run tests *outside* of checked out easybuild-framework directory,
194194
# to ensure we're testing installed version (see previous step)
195195
cd $HOME
196+
# Copy test folder first as that module is NOT installed. Could be run from source tree but we want to test the installed package
197+
cp -r $GITHUB_WORKSPACE/test .
198+
196199
# initialize environment for modules tool
197200
if [ -f $HOME/moduleshome ]; then export MODULESHOME=$(cat $HOME/moduleshome); fi
198201
source $(cat $HOME/mod_init)

0 commit comments

Comments
 (0)