Merge branch 'release/1.2.5' into develop #283
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |