Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
deprecation warning switch to check-jsonschema
  • Loading branch information
mwalzer authored Mar 19, 2024
1 parent a68c7f8 commit 1b6d7d7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jsonschema
- name: Validate mzQC files
pip install jsonschema check-jsonschema
- name: Syntactic Validatation of example mzQC files
run: |
for i in $PATH_TO_EXAMPLES/*.mz[qQ][cC]; do
echo "Syntactic validating of $i"
jsonschema -i $i ./schema/mzqc_schema.json
echo "Syntactic Validation of $i"
#jsonschema -i $i ./schema/mzqc_schema.json
check-jsonschema --schemafile schema.json $i
if [ $? -ne 0 ]; then
echo "Failed to validate $i"
exit 1
Expand Down

0 comments on commit 1b6d7d7

Please sign in to comment.