-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (41 loc) · 1.23 KB
/
test_other_formats.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: test generating other formats
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install the required python packages
run: python -m pip install .[test]
- name: Other installations
run: |
sudo apt-get update
sudo apt-get install -y build-essential git wget curl
- name: Generate other model representations
run: |
cd linkml-schema
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 ..