@@ -11,15 +11,15 @@ jobs:
11
11
outputs :
12
12
changed_recipes : ${{ steps.files.outputs.added_modified }}
13
13
steps :
14
- - name : Find changed recipes
15
- id : files
16
- uses : jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
17
- with :
18
- format : ' json'
14
+ - name : Find changed recipes
15
+ id : files
16
+ uses : jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
17
+ with :
18
+ format : json
19
19
20
20
test-recipes :
21
21
needs :
22
- - changes
22
+ - changes
23
23
runs-on : ubuntu-latest
24
24
strategy :
25
25
# Keep going on other deployments if anything bloops
@@ -29,69 +29,69 @@ jobs:
29
29
30
30
name : Check ${{ matrix.changed_recipe }}
31
31
steps :
32
- - name : Continue
33
- run : |
34
- # Continue if we have a changed recipe file
35
- if [[ "${{ matrix.changed_recipe }}" = registry* ]]; then
36
- recipe_basename=$(basename "${{ matrix.changed_recipe }}")
37
- if [[ "${recipe_basename}" == "container.yaml" ]]; then
38
- echo "keepgoing=true" >> $GITHUB_ENV
39
- fi
32
+ - name : Continue
33
+ run : |
34
+ # Continue if we have a changed recipe file
35
+ if [[ "${{ matrix.changed_recipe }}" = registry* ]]; then
36
+ recipe_basename=$(basename "${{ matrix.changed_recipe }}")
37
+ if [[ "${recipe_basename}" == "container.yaml" ]]; then
38
+ echo "keepgoing=true" >> $GITHUB_ENV
40
39
fi
40
+ fi
41
41
42
- - name : Checkout
43
- if : ${{ env.keepgoing == 'true' }}
44
- uses : actions/checkout@v3
42
+ - name : Checkout
43
+ if : ${{ env.keepgoing == 'true' }}
44
+ uses : actions/checkout@v3
45
45
46
- - name : Make Space For Build
47
- if : ${{ env.keepgoing == 'true' }}
48
- run : |
49
- sudo rm -rf /usr/share/dotnet
50
- sudo rm -rf /opt/ghc
46
+ - name : Make Space For Build
47
+ if : ${{ env.keepgoing == 'true' }}
48
+ run : |
49
+ sudo rm -rf /usr/share/dotnet
50
+ sudo rm -rf /opt/ghc
51
51
52
- - name : Install Dependencies
53
- if : ${{ env.keepgoing == 'true' }}
54
- run : |
55
- sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
52
+ - name : Install Dependencies
53
+ if : ${{ env.keepgoing == 'true' }}
54
+ run : |
55
+ sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
56
56
57
- - name : Install Lmod
58
- if : ${{ env.keepgoing == 'true' }}
59
- run : |
60
- PKG_VERSION=8.4.27
61
- PKG_URL="https://github.com/TACC/Lmod/archive/${PKG_VERSION}.tar.gz"
62
- wget $PKG_URL
63
- tar xfz ${PKG_VERSION}.tar.gz
64
- cd Lmod-${PKG_VERSION}
65
- ./configure --prefix=/usr/share && make && make install
57
+ - name : Install Lmod
58
+ if : ${{ env.keepgoing == 'true' }}
59
+ run : |
60
+ PKG_VERSION=8.4.27
61
+ PKG_URL="https://github.com/TACC/Lmod/archive/${PKG_VERSION}.tar.gz"
62
+ wget $PKG_URL
63
+ tar xfz ${PKG_VERSION}.tar.gz
64
+ cd Lmod-${PKG_VERSION}
65
+ ./configure --prefix=/usr/share && make && make install
66
66
67
- - uses : eWaterCycle/setup-singularity@v6
68
- if : ${{ env.keepgoing == 'true' }}
69
- name : Install Singularity
70
- with :
71
- singularity-version : 3.6.4
67
+ - uses : eWaterCycle/setup-singularity@v6
68
+ if : ${{ env.keepgoing == 'true' }}
69
+ name : Install Singularity
70
+ with :
71
+ singularity-version : 3.6.4
72
72
73
- - name : Create conda environment
74
- if : ${{ env.keepgoing == 'true' }}
75
- run : conda create --quiet -c conda-forge --name shpc spython
73
+ - name : Create conda environment
74
+ if : ${{ env.keepgoing == 'true' }}
75
+ run : conda create --quiet -c conda-forge --name shpc spython
76
76
77
- - uses : actions/checkout@v2
78
- if : ${{ env.keepgoing == 'true' }}
77
+ - uses : actions/checkout@v3
78
+ if : ${{ env.keepgoing == 'true' }}
79
79
80
- - name : Install shpc
81
- if : ${{ env.keepgoing == 'true' }}
82
- run : |
83
- export PATH="/usr/share/miniconda/bin:$PATH"
84
- source activate shpc
85
- pip install -e .
80
+ - name : Install shpc
81
+ if : ${{ env.keepgoing == 'true' }}
82
+ run : |
83
+ export PATH="/usr/share/miniconda/bin:$PATH"
84
+ source activate shpc
85
+ pip install -e .
86
86
87
- - name : Run module tests
88
- if : ${{ env.keepgoing == 'true' }}
89
- run : |
90
- export PATH="/usr/share/miniconda/bin:$PATH"
91
- source activate shpc
92
- cd registry
93
- container_yaml="${{ matrix.changed_recipe }}"
94
- module=$(dirname $container_yaml)
95
- module=$(echo "${module/registry\//}")
96
- echo "Testing $module"
97
- shpc test --template ../shpc/tests/test-registry-module.sh --commands $module
87
+ - name : Run module tests
88
+ if : ${{ env.keepgoing == 'true' }}
89
+ run : |
90
+ export PATH="/usr/share/miniconda/bin:$PATH"
91
+ source activate shpc
92
+ cd registry
93
+ container_yaml="${{ matrix.changed_recipe }}"
94
+ module=$(dirname $container_yaml)
95
+ module=$(echo "${module/registry\//}")
96
+ echo "Testing $module"
97
+ shpc test --template ../shpc/tests/test-registry-module.sh --commands $module
0 commit comments