Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
torogi94 committed May 19, 2023
1 parent 50c588c commit f6d97c0
Show file tree
Hide file tree
Showing 23 changed files with 2,151 additions and 622 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/generate_api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Generate API

on: push

jobs:
generate-api:
runs-on: ubuntu-latest
env:
LIB_NAME: ${{ secrets.LIB_NAME }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install sdRDM
run: python3 -m pip install git+https://github.com/JR-1991/software-driven-rdm.git@20-lowest-level-elements-in-xml-cannot-have-attributes-and-content

- name: Generate API
env:
URL: ${{github.repositoryUrl}}
COMMIT: ${{github.sha}}
run: sdrdm generate --path ./specifications/ --out . --name "$LIB_NAME" --url "$URL" --commit "$COMMIT"

- name: Push source code
run: |
if [[ `git status --porcelain` ]]; then
git add "$LIB_NAME"
git config --global user.name 'sdRDM Bot'
git config --global user.email '[email protected]'
git commit -am "API update"
git push
else
echo "Nothing changed!"
fi
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none"
}
22 changes: 22 additions & 0 deletions links/enzymeml.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
__model__ = "NMRpy"

[__sources__]
EnzymeMLDocument = "https://github.com/EnzymeML/enzymeml-specifications.git@markdown-parser-refactor"

[NMRpy]
datetime_created = "EnzymeMLDocument.created"
datetime_modified = "EnzymeMLDocument.modified"

[experiment]
name = "EnzymeMLDocument.name"

[citation]
doi = "EnzymeMLDocument.doi"

["citation.authors"]
last_name = "EnzymeMLDocument.creators.given_name"
first_name = "EnzymeMLDocument.creators.family_name"
email = "EnzymeMLDocument.creators.mail"

["citation.related_publications"]
doi = "EnzymeMLDocument.url"
Empty file added links/nmrml.toml
Empty file.
Loading

0 comments on commit f6d97c0

Please sign in to comment.