Skip to content

Commit 0101153

Browse files
committed
ci: add step to run python module tests under tcsh
Add test step to check the generated modules under a shell of the Csh family.
1 parent 5fea69d commit 0101153

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Install Dependencies
1717
run: |
18-
sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
18+
sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev tcsh
1919
2020
- name: Install Environment Modules
2121
if: ${{ matrix.module == 'tcl' }}
@@ -54,7 +54,7 @@ jobs:
5454
source activate shpc
5555
pip install -e .
5656
57-
- name: Run python module tests
57+
- name: Run python module tests (bash)
5858
shell: bash
5959
run: |
6060
case "${{ matrix.module }}" in
@@ -89,3 +89,37 @@ jobs:
8989
module help python/3.9.5-alpine
9090
python-exec echo donuts
9191
python-run python --version
92+
93+
- name: Run python module tests (tcsh)
94+
shell: tcsh -e {0}
95+
run: |
96+
switch ("${{ matrix.module }}")
97+
case lmod:
98+
source /usr/share/lmod/lmod/init/tcsh
99+
breaksw
100+
case tcl:
101+
source /usr/local/Modules/init/tcsh
102+
breaksw
103+
endsw
104+
105+
source /usr/share/miniconda/etc/profile.d/conda.csh
106+
conda activate shpc
107+
shpc config set container_tech:${{ matrix.container_tech }}
108+
shpc config set module_sys:${{ matrix.module }}
109+
shpc config set enable_tty:false
110+
shpc install python:3.9.5-alpine
111+
112+
module use ./modules
113+
module load python/3.9.5-alpine
114+
alias
115+
116+
printf "\n\nmodule show ============================================\n"
117+
module show python/3.9.5-alpine
118+
119+
printf "\n\nmodule whatis ==========================================\n"
120+
module whatis python/3.9.5-alpine
121+
122+
printf "\n\nmodule help ============================================\n"
123+
module help python/3.9.5-alpine
124+
python-exec echo donuts
125+
python-run python --version

0 commit comments

Comments
 (0)