Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
adding 1st try of offline validator use for semantic validation
  • Loading branch information
mwalzer authored Mar 19, 2024
1 parent 3c2d22c commit 0ef322d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jsonschema check-jsonschema
- name: Syntactic Validatation of example mzQC files
pip install jsonschema check-jsonschema pymzqc click
- name: Syntactic Validatation of Example mzQC Files
run: |
for i in $PATH_TO_EXAMPLES/*.mz[qQ][cC]; do
echo "Syntactic Validation of $i"
Expand All @@ -38,3 +38,13 @@ jobs:
exit 1
fi
done
- name: Semantic Validatation of Example mzQC Files
run: |
for i in $PATH_TO_EXAMPLES/*.mz[qQ][cC]; do
echo "Semantic Validation of $i"
mzqc_offline_validator.py $i
if [ $? -ne 0 ]; then
echo "Failed to validate $i"
exit 1
fi
done

0 comments on commit 0ef322d

Please sign in to comment.