[wip] Linkml #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |