Skip to content

Commit 1d29f2a

Browse files
committed
Be more careful!
1 parent 186390b commit 1d29f2a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/tests_eessi_module.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,17 @@ jobs:
255255

256256
- name: Make sure we have a sticky EESSI module
257257
run: |
258-
# Set the relevant environment variable and load the EESSI module via Lmod initialisation
259-
export EESSI_MODULE_STICKY=1
258+
# Initialise Lmod
260259
. /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}/compat/linux/$(uname -m)/usr/share/Lmod/init/bash
261260
262-
# Purge the environment and check if EESSI is still loaded
261+
# Make sure we using the module file from the repository
262+
export MODULEPATH=init/modules
263+
264+
# Set the relevant environment variable and load the EESSI module
265+
export EESSI_MODULE_STICKY=1
266+
module load "EESSI/${{matrix.EESSI_VERSION}}"
267+
module list |& grep "EESSI/${{matrix.EESSI_VERSION}}"
268+
269+
# Purge and check the module is still loaded
263270
module purge
264271
module list |& grep "EESSI/${{matrix.EESSI_VERSION}}"

0 commit comments

Comments
 (0)