Skip to content
Snippets Groups Projects
Commit a36a2274 authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

Implement all checks in lint.yml directly

parent 391bb0de
No related branches found
No related tags found
No related merge requests found
......@@ -28,5 +28,29 @@ jobs:
# Conda-incubator uses 'test' environment by default.
- name: install requirements
run: mamba install -n test cromwell miniwdl wdl-aid
- name: run linting
run: bash scripts/biowdl_lint.sh
- name: run womtool validate
run: |
bash -c '
for WDL_FILE in $(git ls-files *.wdl); do
womtool validate $WDL_FILE
done
'
- name: run miniwdl check
run: bash -c 'miniwdl check $(git ls-files *.wdl)'
- name: Check copyright headers
run: |
bash -c '
for WDL_FILE in $(git ls-files *.wdl); do
grep Copyright $WDL_FILE || bash -c "echo No copyright header in $WDL_FILE && exit 1"
done
'
- name: Check parameter_meta for inputs
run: |
bash -c '
for WDL_FILE in $(git ls-files *.wdl); do
wdl-aid --strict $WDL_FILE > /dev/null 2> wdl-aid_stderr ||
if grep -vz "ValueError: Missing parameter_meta for inputs:" wdl-aid_stderr
then
exit 1
fi
'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment