When I generate an error because of a missing title for my ontology, my CI/CD runner does not consider the script execution to have failed. I expected an error to result in a non-zero exit code, which I need so CI/CD detects a failure.
CI/CD log:
$ python -m pylode $ONTOLOGY_PATH -o ./documentation/index.html
ERROR: You MUST supply a title property (dcterms:title, rdf:label or sdo:name) for your ontology
$ echo $?
0
The error being raised here is, I think, a PyLodeError which just subclasses from Exception without any modifications.
When I generate an error because of a missing title for my ontology, my CI/CD runner does not consider the script execution to have failed. I expected an error to result in a non-zero exit code, which I need so CI/CD detects a failure.
CI/CD log:
The error being raised here is, I think, a PyLodeError which just subclasses from Exception without any modifications.
Am I missing something?