|
15 | 15 |
|
16 | 16 | - name: Install Dependencies
|
17 | 17 | 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 |
19 | 19 |
|
20 | 20 | - name: Install Environment Modules
|
21 | 21 | if: ${{ matrix.module == 'tcl' }}
|
|
54 | 54 | source activate shpc
|
55 | 55 | pip install -e .
|
56 | 56 |
|
57 |
| - - name: Run python module tests |
| 57 | + - name: Run python module tests (bash) |
58 | 58 | shell: bash
|
59 | 59 | run: |
|
60 | 60 | case "${{ matrix.module }}" in
|
|
89 | 89 | module help python/3.9.5-alpine
|
90 | 90 | python-exec echo donuts
|
91 | 91 | 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