-
Notifications
You must be signed in to change notification settings - Fork 71
67 lines (59 loc) · 1.72 KB
/
testwdls.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Test WDLs
on:
push:
branches:
- main
paths:
- 'wdl/**'
- 'inputs/**'
- 'scripts/inputs/build_default_inputs.sh'
- 'scripts/test/terra_validation.py'
- 'scripts/test/miniwdl_validation.py'
- 'scripts/test/validate.sh'
pull_request:
branches:
- main
paths:
- 'wdl/**'
- 'inputs/**'
- 'scripts/inputs/build_default_inputs.sh'
- 'scripts/test/terra_validation.py'
- 'scripts/test/miniwdl_validation.py'
- 'scripts/test/validate.sh'
jobs:
syntax_test_job:
runs-on: ubuntu-22.04
name: Check WDL Syntax
strategy:
matrix:
python-version: ['3.8']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Setup Java
uses: actions/setup-java@v3
with:
# See https://github.com/actions/setup-java for the available options.
distribution: 'temurin'
java-version: '17'
- name: Setup
run: |
python -m pip install --upgrade pip
# Setup for running miniwdl
pip install miniwdl
# Setup for running womtool
pip install jinja2==3.1.2
wget -O womtool.jar https://github.com/broadinstitute/cromwell/releases/download/84/womtool-84.jar
scripts/inputs/build_default_inputs.sh -d .
- name: Test with Miniwdl
run: |
python scripts/test/miniwdl_validation.py \
--imports-dir wdl \
wdl/*.wdl
- name: Test with WOMtool
run: |
scripts/test/validate.sh -t -d . -j womtool.jar