Skip to content

Commit 11a6006

Browse files
committed
udocker cache
1 parent f8117dd commit 11a6006

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/cwltool.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
# These are options to be set in CWLTOOL_OPTIONS. Note that for
20-
# the user-space Docker command, the default value is "docker",
21-
# but that will fail on most CI envs already running on Docker.
19+
# These are sets of options to be added via CWLTOOL_OPTIONS
2220
options:
23-
- --debug --parallel --user-space-docker-cmd=
24-
- --debug --parallel --user-space-docker-cmd=udocker
21+
- ""
22+
- --user-space-docker-cmd=udocker
2523

2624
runs-on: ubuntu-latest
2725

@@ -31,11 +29,22 @@ jobs:
3129
- uses: actions/setup-python@v2
3230
with:
3331
python-version: '3.9.x'
34-
32+
33+
- name: hash the container names
34+
id: containers
35+
run: |
36+
echo "::set-output name=hash::$(git grep dockerPull -- tests | awk '{ print $NF}' | sort -u | md5sum | awk '{print $1}')"
37+
shell: bash
38+
39+
- uses: actions/cache@v3
40+
with:
41+
path: .udocker
42+
key: ${{ steps.containers.outputs.hash }}
43+
3544
- name: Setup prerequirements
3645
run: pip install cwltest cwltool udocker && udocker install
3746

3847
- name: Run tests against the reference runner
3948
env:
4049
CWLTOOL_OPTIONS: ${{ matrix.options }}
41-
run: cwltest --junit-verbose --verbose --tool cwltool --test=conformance_tests.yaml -j$(nproc)
50+
run: cwltest --junit-verbose --verbose --tool cwltool --test=conformance_tests.yaml -j$(nproc) -- --debug --parallel --relax-path-checks

0 commit comments

Comments
 (0)