Skip to content

Commit

Permalink
Merge pull request #32 from djarecka/fix/ga_trigger
Browse files Browse the repository at this point in the history
changing ga setting
  • Loading branch information
djarecka authored Mar 27, 2024
2 parents a324d35 + 5da062d commit 1a34eb3
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 38 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/generate_other_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@ jobs:
- name: Generate other model representations
run: |
cd linkml-schema
for file in *.yaml;
do name=`basename ${file} .yaml`;
echo "Processing $name file..";
gen-json-schema ${file} > ../json-schema-autogen/${name}.json;
# generating jsonld context and removing generation_date field to avoid constant updates
gen-jsonld-context ${file} > ../jsonld-context-autogen/${name}.context.jsonld;
sed -i "/generation_date/d" ../jsonld-context-autogen/${name}.context.jsonld;
gen-pydantic --pydantic_version 2 ${file} > ../models_py-autogen/${name}.py;
if [ ${name} = "kbmodel" ]; then
echo "Creating and Fixing kbmodel diagram..";
python ../utils/create_fix_kbmodel_diagram.py
else
gen-erdiagram ${file} > ../erdiagram-autogen/${name}.md;
for file in *.yaml; do
if [ "$file" != "bican_biolink.yaml" ]; then
name=`basename ${file} .yaml`;
echo "Processing $name file..";
gen-json-schema ${file} > ../json-schema-autogen/${name}.json;
# generating jsonld context and removing generation_date field to avoid constant updates
gen-jsonld-context ${file} > ../jsonld-context-autogen/${name}.context.jsonld;
sed -i "/generation_date/d" ../jsonld-context-autogen/${name}.context.jsonld;
gen-pydantic --pydantic-version 2 ${file} > ../models_py-autogen/${name}.py;
if [ ${name} = "kbmodel" ]; then
echo "Creating and Fixing kbmodel diagram..";
python ../utils/create_fix_kbmodel_diagram.py
else
gen-erdiagram ${file} > ../erdiagram-autogen/${name}.md;
fi
fi
done
cd ..
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/test_other_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: test generating other formats

on:
push:
paths:
- 'linkml-schema/'
branches:
- main
pull_request:
paths:
- 'linkml-schema/'

jobs:
test:
Expand All @@ -32,17 +30,19 @@ jobs:
- name: Generate other model representations
run: |
cd linkml-schema
for file in *.yaml;
do name=`basename ${file} .yaml`;
echo "Processing $name file..";
# generating json schema
gen-json-schema ${file};
# generating jsonld context
gen-jsonld-context ${file};
# generating pydantic schema
gen-pydantic --pydantic_version 2 ${file};
if [ ${name} != "kbmodel" ]; then
gen-erdiagram ${file};
for file in *.yaml; do
if [ "$file" != "bican_biolink.yaml" ]; then
name=`basename ${file} .yaml`;
echo "Processing $name file..";
# generating json schema
gen-json-schema ${file};
# generating jsonld context
gen-jsonld-context ${file};
# generating pydantic schema
gen-pydantic --pydantic-version 2 ${file};
if [ ${name} != "kbmodel" ]; then
gen-erdiagram ${file};
fi
fi
done
cd ..
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/tests_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: testing schemas with linkml-lint

on:
push:
paths:
- 'linkml-schema/'
branches:
- main
pull_request:
paths:
- 'linkml-schema/'


jobs:
test:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/tests_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: testing schemas with python api

on:
push:
paths:
- 'linkml-schema/'
branches:
- main
pull_request:
paths:
- 'linkml-schema/'


jobs:
test:
Expand Down

0 comments on commit 1a34eb3

Please sign in to comment.