-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (37 loc) · 1.37 KB
/
generate_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
name: generating other formats
on:
push:
branches:
- linkml
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 linkml
- name: Other installations
run: |
sudo apt-get update
sudo apt-get install -y build-essential git wget curl
- name: Generate other model representations
continue-on-error: true
run: |
gen-json-schema linkml-schema/reproschema.yaml > autogenerated-schema/reproschema.json;
gen-pydantic --pydantic-version 2 linkml-schema/reproschema.yaml > autogenerated-schema/reproschema.py;
#gen-shacl linkml-schema/reproschema.yaml > autogenerated-schema/reproschema.shacl.ttl;
gen-erdiagram linkml-schema/reproschema.yaml > autogenerated-schema/reproschema.md;
- name: Adding other model representations to git
continue-on-error: true
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add autogenerated-schema/*
git commit -m "generate another formats"
git push