-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
2,151 additions
and
622 deletions.
There are no files selected for viewing
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
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 |
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
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" | ||
} |
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
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.
Oops, something went wrong.