@@ -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 :
41
44
42
45
- name : Set up Singularity
43
46
if : ${{ matrix.step == 'unit' || matrix.step == 'mypy' }}
44
- run : |
45
- wget --no-verbose https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-focal_amd64.deb
46
- sudo apt-get install -y ./singularity-ce_3.10.4-focal_amd64.deb
47
+ uses : eWaterCycle/setup-apptainer@v2
48
+ with :
49
+ apptainer-version : ${{ env.apptainer_version }}
47
50
48
51
- name : Set up Python
49
52
uses : actions/setup-python@v4
@@ -114,24 +117,16 @@ jobs:
114
117
115
118
release_test :
116
119
name : cwl-utils release test
120
+
117
121
runs-on : ubuntu-22.04
118
122
119
123
steps :
120
124
- uses : actions/checkout@v3
121
125
122
- - name : Set up Singularity
123
- run : |
124
- wget --no-verbose https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-jammy_amd64.deb
125
- sudo apt-get install -y ./singularity-ce_3.10.4-jammy_amd64.deb
126
-
127
- - name : pull some containers
128
- run : |
129
- export CWL_SINGULARITY_CACHE=$(echo $GITHUB_WORKSPACE)/singularity_cache
130
- mkdir -p ${CWL_SINGULARITY_CACHE}
131
- singularity pull --name ${CWL_SINGULARITY_CACHE}/node_alpine.sif docker://docker.io/node:alpine
132
- ls -lh ${CWL_SINGULARITY_CACHE}
133
- echo ${CWL_SINGULARITY_CACHE}
134
- echo "CWL_SINGULARITY_CACHE=${CWL_SINGULARITY_CACHE}" >> $GITHUB_ENV
126
+ - name : Set up Apptainer
127
+ uses : eWaterCycle/setup-apptainer@2
128
+ with :
129
+ apptainer-version : ${{ env.apptainer_version }}
135
130
136
131
- name : Set up Python
137
132
uses : actions/setup-python@v4
0 commit comments