-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Knowledge-Graph-Hub/poetry_setup
Set up poetry, workflows, and docs
- Loading branch information
Showing
17 changed files
with
2,240 additions
and
128 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
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
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,44 @@ | ||
name: Deploy Documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
|
||
paths: | ||
- 'docs/*/*.md' | ||
|
||
jobs: | ||
build-docs: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python3 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
#---------------------------------------------- | ||
# install dependencies if cache does not exist | ||
#---------------------------------------------- | ||
- name: Install dependencies | ||
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction | ||
|
||
#---------------------------------------------- | ||
# Create documentation and deploy. | ||
#---------------------------------------------- | ||
- name: Create local docs | ||
run: | | ||
touch docs/.nojekyll | ||
poetry run make all_docs | ||
poetry run make gh-deploy |
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
name: kg-registry QC | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.9", "3.10" ] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
- name: Install dependencies | ||
run: poetry install --no-interaction | ||
|
||
- name: Run linter | ||
run: poetry run tox -e lint | ||
|
||
- name: Check code quality with flake8 | ||
run: poetry run tox -e flake8 | ||
|
||
- name: Check static typing with MyPy | ||
run: poetry run tox -e mypy | ||
|
||
- name: Run tests | ||
run: poetry run python -m unittest discover tests |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# kg-registry | ||
A simple registry for KGHub projects | ||
|
||
To add a new project, make a PR for this repo which updates registry.yaml to include information about your KG. | ||
A simple registry for knowledge graphs, including KG-Hub projects. |
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,3 @@ | ||
# Introduction to KG-Registry | ||
|
||
KG-Registry is a registry for knowledge graphs. |
Empty file.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
--- | ||
site_name: "KG-Registry" | ||
theme: | ||
name: material | ||
analytics: | ||
gtag: G-2SYBSJVZ23 | ||
palette: | ||
- media: '(prefers-color-scheme: light)' | ||
scheme: default | ||
primary: indigo | ||
accent: blue grey | ||
toggle: | ||
icon: material/lightbulb | ||
name: Switch to light mode | ||
- media: '(prefers-color-scheme: dark)' | ||
scheme: slate | ||
primary: indigo | ||
accent: blue grey | ||
toggle: | ||
icon: material/lightbulb-outline | ||
name: Switch to dark mode | ||
features: | ||
- content.tabs.link | ||
plugins: | ||
- search | ||
nav: | ||
- Introduction: index.md | ||
site_url: https://knowledge-graph-hub.github.io/kg-registry/ | ||
repo_url: https://github.com/Knowledge-Graph-Hub/kg-registry |
Oops, something went wrong.