From d8d0115e55cacf8cabfb4bf3fa12aec8ad52fa5b Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Sun, 26 Nov 2023 10:24:12 -0800 Subject: [PATCH] Add a workflow to validate the ontology --- .github/workflows/validate.yml | 11 +++++++++++ Makefile | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..9057a85 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,11 @@ +name: Validate TGEMO.OWL +on: [push] +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + - name: Download ROBOT + run: wget -O robot.jar https://github.com/ontodev/robot/releases/download/v1.9.5/robot.jar + - name: Validate TGEMO.OWL + run: make check diff --git a/Makefile b/Makefile index e379dd9..ba88c60 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,11 @@ ROBOT := java -jar robot.jar +all: TGEMO.OBO + TGEMO.OBO: TGEMO.OWL $(ROBOT) convert --format obo --input $^ --output $@ + +check: TGEMO.OWL + $(ROBOT) validate-profile --profile Full --input $^ + +.PHONY: all check