-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.33 KB
/
pack_cwls.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Pack CWL Files
# Triggers the action on push or pull requests,
# but only for the develop branch
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
pack_cwls:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: [3.8.x, 3.9.x]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install cwltool
run: |
python -m pip install toil[cwl]==5.7.1
- name: Run cwltool --pack for all workflows
run: |
echo Removing old packed workflows
rm -rf ./packed_workflows/*
echo Packing CWL files...
find . -name '*.cwl' ! -path '*__packed*' ! -path '*/command_line_tools/*' -type f -print0 -exec sh -c 'cwltool --pack $0 > ${0/.cwl/__packed.cwl}' {} \;
- name: Validate packed workflows
run: |
echo Validating packed workflows...
find . -name '*__packed.cwl' | xargs -I file cwltool --debug --validate file
- uses: EndBug/[email protected]
with:
ref: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}