Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Update structure of src folder in template #30

Merged
merged 12 commits into from
Jun 30, 2022
8 changes: 5 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://docs.github.com/en/actions/guides/building-and-testing-python
# https://github.com/snok/install-poetry#workflows-and-tips

name: Build and test linkml-runtime
name: Build and Test LinkML model

on: [pull_request]

Expand Down Expand Up @@ -62,6 +62,8 @@ jobs:
#----------------------------------------------
# run test suite
#----------------------------------------------
- name: Run tests
run: make test
# enable this step when you have a derived data model
# and a test suite
# - name: Run tests
# run: make test

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ gen-project: $(PYMODEL)
$(RUN) gen-project -d $(DEST) $(SOURCE_SCHEMA_PATH) && mv $(DEST)/*.py $(PYMODEL)

test:
$(RUN) gen-project -d tmp $(SOURCE_SCHEMA_PATH)
$(RUN) python -m unittest discover

check-config:
@(grep my-datamodel about.yaml > /dev/null && printf "\n**Project not configured**:\n\n - Remember to edit 'about.yaml'\n\n" || exit 0)
Expand Down Expand Up @@ -93,7 +93,7 @@ git-init-add: git-init git-add git-commit git-status
git-init:
git init
git-add:
git add .gitignore .github Makefile LICENSE *.md examples utils about.yaml mkdocs.yml poetry.lock project.Makefile pyproject.toml src/linkml/*yaml src/*/datamodel/*py src/data
git add .gitignore .github Makefile LICENSE *.md examples utils about.yaml mkdocs.yml poetry.lock project.Makefile pyproject.toml src/schema/*yaml src/*/datamodel/*py src/data
git add project
git-commit:
git commit -m 'Initial commit' -a
Expand Down
2 changes: 1 addition & 1 deletion about.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: my-datamodel
source_schema_path: src/linkml/my_datamodel.yaml
source_schema_path: src/schema/my_datamodel.yaml
2 changes: 1 addition & 1 deletion about.yaml.jinja
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: {{name}}
source_schema_path: src/linkml/my_datamodel.yaml
source_schema_path: src/schema/my_datamodel.yaml
description: {{description}}
Loading