From 0ef322dc540700c29ea07ce28135e2f472bf9234 Mon Sep 17 00:00:00 2001 From: Mathias Walzer Date: Tue, 19 Mar 2024 05:35:37 +0000 Subject: [PATCH] Update tests.yml adding 1st try of offline validator use for semantic validation --- .github/workflows/tests.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a70bd69..9ee286f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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" @@ -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