@@ -10,6 +10,9 @@ concurrency:
10
10
group : build-${{ github.event.pull_request.number || github.ref }}
11
11
cancel-in-progress : true
12
12
13
+ env :
14
+ apptainer_version : 1.1.8
15
+
13
16
jobs :
14
17
15
18
tox :
34
37
35
38
- name : Set up Singularity
36
39
if : ${{ matrix.step == 'unit' || matrix.step == 'mypy' }}
37
- run : |
38
- wget --no-verbose https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-focal_amd64.deb
39
- sudo apt-get install -y ./singularity-ce_3.10.4-focal_amd64.deb
40
+ uses : eWaterCycle/setup-apptainer@v2
41
+ with :
42
+ apptainer-version : ${{ env.apptainer_version }}
40
43
41
44
- name : Set up Python
42
45
uses : actions/setup-python@v4
@@ -108,24 +111,16 @@ jobs:
108
111
109
112
release_test :
110
113
name : cwl-utils release test
114
+
111
115
runs-on : ubuntu-22.04
112
116
113
117
steps :
114
118
- uses : actions/checkout@v3
115
119
116
- - name : Set up Singularity
117
- run : |
118
- wget --no-verbose https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-jammy_amd64.deb
119
- sudo apt-get install -y ./singularity-ce_3.10.4-jammy_amd64.deb
120
-
121
- - name : pull some containers
122
- run : |
123
- export CWL_SINGULARITY_CACHE=$(echo $GITHUB_WORKSPACE)/singularity_cache
124
- mkdir -p ${CWL_SINGULARITY_CACHE}
125
- singularity pull --name ${CWL_SINGULARITY_CACHE}/node_alpine.sif docker://docker.io/node:alpine
126
- ls -lh ${CWL_SINGULARITY_CACHE}
127
- echo ${CWL_SINGULARITY_CACHE}
128
- echo "CWL_SINGULARITY_CACHE=${CWL_SINGULARITY_CACHE}" >> $GITHUB_ENV
120
+ - name : Set up Apptainer
121
+ uses : eWaterCycle/setup-apptainer@2
122
+ with :
123
+ apptainer-version : ${{ env.apptainer_version }}
129
124
130
125
- name : Set up Python
131
126
uses : actions/setup-python@v4
0 commit comments