Skip to content

Commit

Permalink
First cut at the model
Browse files Browse the repository at this point in the history
  • Loading branch information
hsolbrig committed Mar 14, 2021
1 parent d818e32 commit 2b52fb3
Show file tree
Hide file tree
Showing 19 changed files with 1,843 additions and 227 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build

on:
push:
branches: [ master ]

jobs:
unittests-n-commits:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Update requirements files and test
run: |
python -m pip install --upgrade pip
pip install pipenv-to-requirements
pipenv_to_requirements
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Run make file
run: |
make
- name: Run unit tests over output
run: |
python -m unittest discover -p 'test_*.py'
- name: Check in changes to requirements files
run: |
git add requirements*.txt
if [[ ! -z $(git status -s requirements*.txt) ]]
then
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'Automatically generated requirements.txt and requirements-dev.txt' requirements*.txt
git push
fi
- name: Check updated content
run: |
git add --force docs graphql json jsonld jsonschema owl python rdf shex
if [[ ! -z $(git status -s .) ]]
then
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'Updating generated outputs' .
git push
fi
165 changes: 161 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,164 @@
Pipfile
# Elements that are built using Make
target/
docs/
graphql/
json/
jsonld/
jsonschema/
owl/
python/
rdf/
shex/

site/
venv/
docs/*md
docs/types/
*/my_schema.*

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# Editors
.idea/
.project
.classpath

# make artifacts
*-PREV

# Apple stuff
.DS_Store
12 changes: 6 additions & 6 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# How to make a release

See the instructions at the top of [Makefile](Makefile)
Make an

First install the linkml python package and mkdocs:
1) Make changes to the source schema
2) run `make all`
3) run `make tests`
4) run `make gh-deploy`

```bash
. environment.sh
pip install -r requirements.txt
```
Your documentation will be available from a URL https://my_org_or_name.github.io/my_schema/

Then every time you change the source schema, run:

Expand Down
Loading

0 comments on commit 2b52fb3

Please sign in to comment.