Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move curated lists to ontology-assets #48

Merged
merged 5 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/validate_curated_lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Validate Curated List Update
on:
push:
paths:
- "**/tools/ontology-builder/src/ontology-references/**.json"
- "**/ontology-assets/**.json"
- "**/artifact-schemas/**.json"
branches-ignore:
- main
Expand Down
4 changes: 3 additions & 1 deletion tools/ontology-builder/src/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
RAW_ONTOLOGY_DIR = os.path.join(ONTOLOGY_REF_DIR, "raw-files")
ONTO_INFO_YAML = os.path.join(FIXTURES_ROOT, "ontology_info.yml")
PARSED_ONTOLOGIES_FILE = os.path.join(FIXTURES_ROOT, "all_ontology.json.gz")
SCHEMA_DIR = os.path.join(os.path.realpath(__file__).rsplit("/", maxsplit=4)[0], "artifact-schemas")
PROJECT_ROOT_DIR = os.path.realpath(__file__).rsplit("/", maxsplit=4)[0]
SCHEMA_DIR = os.path.join(PROJECT_ROOT_DIR, "artifact-schemas")
ONTOLOGY_ASSETS_DIR = os.path.join(PROJECT_ROOT_DIR, "ontology-assets")
2 changes: 1 addition & 1 deletion tools/ontology-builder/src/validate_curated_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def verify_json(schema_file_name: str, json_file_name: str) -> bool:
return True


def main(path: str = env.ONTOLOGY_REF_DIR) -> None:
def main(path: str = env.ONTOLOGY_ASSETS_DIR) -> None:
"""
Verify the curated JSON lists match their respective JSON schema in artifact-schemas
:param path: The destination path for the json files
Expand Down
Loading