From 93eec2fc5e99643ff40f72f131eb42d6a4a0cbe1 Mon Sep 17 00:00:00 2001 From: nayib-jose-gloria Date: Tue, 13 Feb 2024 17:16:37 -0500 Subject: [PATCH] directory restructure --- .github/workflows/generate_all_ontology.yml | 17 ++++------------- .../{ => src}/all_ontology_generator.py | 0 tools/ontology-builder/{ => src}/env.py | 0 .../ontology-references/all_ontology.json.gz | Bin .../ontology-references/ontology_info.yml | 0 5 files changed, 4 insertions(+), 13 deletions(-) rename tools/ontology-builder/{ => src}/all_ontology_generator.py (100%) rename tools/ontology-builder/{ => src}/env.py (100%) rename tools/ontology-builder/{ => src}/ontology-references/all_ontology.json.gz (100%) rename tools/ontology-builder/{ => src}/ontology-references/ontology_info.yml (100%) diff --git a/.github/workflows/generate_all_ontology.yml b/.github/workflows/generate_all_ontology.yml index 22b6d150..8b4c5669 100644 --- a/.github/workflows/generate_all_ontology.yml +++ b/.github/workflows/generate_all_ontology.yml @@ -3,7 +3,7 @@ name: Updates to Ontology Files on: push: paths: - - "**/tools/ontology-builder/ontology-references/ontology_info.yml" + - "**/tools/ontology-builder/src/ontology-references/ontology_info.yml" branches-ignore: - main @@ -15,13 +15,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.ref }} - - name: ontology changes - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - owl_info: - - 'tools/ontology-builder/ontology-references/owl_info.yml' - name: Set up Python 3.8 uses: actions/setup-python@v1 with: @@ -40,13 +33,11 @@ jobs: run: | git config user.name github-actions git config user.email github-actions@github.com - - name: owl-processing - if: ${{ steps.filter.outputs.owl_info == 'true' }} + - name: ontology-processing run: | - python3 ./tools/ontology-builder/all_ontology_generator.py - git add ./tools/ontology-builder/ontology-references/all_ontology.json.gz + python3 ./tools/ontology-builder/src/all_ontology_generator.py + git add ./tools/ontology-builder/src/ontology-references/all_ontology.json.gz - name: Commit - if: ${{ steps.filter.outputs.owl_info == 'true' }} run: | git commit -m "AUTO: update ontologies" git push diff --git a/tools/ontology-builder/all_ontology_generator.py b/tools/ontology-builder/src/all_ontology_generator.py similarity index 100% rename from tools/ontology-builder/all_ontology_generator.py rename to tools/ontology-builder/src/all_ontology_generator.py diff --git a/tools/ontology-builder/env.py b/tools/ontology-builder/src/env.py similarity index 100% rename from tools/ontology-builder/env.py rename to tools/ontology-builder/src/env.py diff --git a/tools/ontology-builder/ontology-references/all_ontology.json.gz b/tools/ontology-builder/src/ontology-references/all_ontology.json.gz similarity index 100% rename from tools/ontology-builder/ontology-references/all_ontology.json.gz rename to tools/ontology-builder/src/ontology-references/all_ontology.json.gz diff --git a/tools/ontology-builder/ontology-references/ontology_info.yml b/tools/ontology-builder/src/ontology-references/ontology_info.yml similarity index 100% rename from tools/ontology-builder/ontology-references/ontology_info.yml rename to tools/ontology-builder/src/ontology-references/ontology_info.yml