forked from genome/analysis-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 889 Bytes
/
main.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
name: CWL Syntax Check
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
check_syntax:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'cwltool==3.1.20230601100705'
python -m pip install 'ruamel.yaml==0.17.27'
- name: Run cwltool validate
run: |
cd $GITHUB_WORKSPACE/definitions
find . -name '*.cwl' | xargs -n 1 cwltool --validate