Skip to content

Commit

Permalink
Update PythonScriptTest.yml
Browse files Browse the repository at this point in the history
Testing log file for validation
  • Loading branch information
DeniseSl22 authored Aug 14, 2023
1 parent 921c2e1 commit 37d94af
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/PythonScriptTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ jobs:
- name: Turtle Validator
run: |
npm install -g turtle-validator
ttl Output/RDF_Kin_Data_2022-Dec.ttl
if [[ ttl Output/RDF_Kin_Data_2022-Dec.ttl == "Validator finished with 0 warnings and 0 errors." ]]; then
echo "RDF content valid"
ttl Output/RDF_Kin_Data_2022-Dec.ttl > validationLog2022-Dec.txt
FILENAME=validationLog2022-Dec.txt
if grep -q . "${FILENAME}"; then
echo "File is not empty"
else
echo "RDF content NOT valid, please check"
fi
echo "File is empty"
fi

0 comments on commit 37d94af

Please sign in to comment.