Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Peter's attempt to get the docs working. #118

Peter's attempt to get the docs working.

Peter's attempt to get the docs working. #118

Workflow file for this run

---
name: CI tests
on:
pull_request:
push:
branches:
- main
# Cancel running workflows when additional changes are pushed
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check-linkml-schemas:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: |
requirements*.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install -r requirements.txt
pip freeze
- name: Run LinkML generators
run: |
for f in $(ls schemas/*); do
gen-pydantic -vvv --stacktrace $f
gen-json-schema -vvv --stacktrace $f
done
- name: Validate examples
run: |
for f in $(ls examples/extractor/*.yml); do
linkml-validate -s schemas/extractor.yml -C Extractor $f
done
for f in $(ls examples/filetype/*.yml); do
linkml-validate -s schemas/filetype.yml -C FileType $f
done
build-pages:
runs-on: windows-latest
needs: [check-linkml-schemas]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: |
requirements*.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-docs.txt
pip freeze
- name: Build base docs
run: |
gen-doc schemas/base.yaml -d docs/source/gen-doc
- name: Build FileType docs
run: |
gen-doc schemas/filetype.yml -d docs/source/gen-doc
- name: Build Extractor docs
run: |
gen-doc schemas/extractor.yml -d docs/source/gen-doc
- name: Build Sphinx docs
run: |
sphinx-build -b html docs/source public/pr
- name: Upload docs artifact
uses: actions/upload-artifact@v3
with:
name: public-pr
path: public/pr
- name: Upload gen-doc artifact
uses: actions/upload-artifact@v3
with:
name: gen-doc
path: docs/source/gen-doc