Skip to content

Commit

Permalink
Merge pull request #139 from djarecka/ci/new_linkml
Browse files Browse the repository at this point in the history
fixing testing software
  • Loading branch information
djarecka authored Jan 17, 2025
2 parents a1ac4c0 + 1346a8f commit e302e39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/reusable-generate_other_formats_new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,25 @@ jobs:
run: |
cd linkml-schema
models_list="${{ inputs.model_name }}"
echo " "
echo "Model list: $models_list"
for name in $(echo "$models_list" | tr ',' '\n'); do
echo "Processing $name model...";
linkml generate json-schema ${name}.yaml > ../json-schema-autogen/${name}.json;
echo "json-schema generated";
# generating jsonld context and removing generation_date field to avoid constant updates
linkml generate jsonld-context ${name}.yaml > ../jsonld-context-autogen/${name}.context.jsonld;
sed -i "/generation_date/d" ../jsonld-context-autogen/${name}.context.jsonld;
echo "jsonld-context generated";
linkml generate pydantic ${name}.yaml > ../models_py-autogen/${name}.py;
linkml generate owl ${name}.yaml > ../owl-autogen/${name}.owl;
echo "pydantic model generated";
if [ ${name} = "library_generation" ] || [ ${name} = "genome_annotation" ]; then
echo "Fixing erdiagrams for $name";
python ../utils/fix_and_create_erdiagram.py;
else
linkml generate erdiagram ${name}.yaml > ../erdiagram-autogen/${name}.md;
fi
echo "erdiagram generated";
done
cd ..
Expand Down

0 comments on commit e302e39

Please sign in to comment.