Skip to content

Merge pull request #105 from linea-it/99-tsm-from-pzserver-lib #25

Merge pull request #105 from linea-it/99-tsm-from-pzserver-lib

Merge pull request #105 from linea-it/99-tsm-from-pzserver-lib #25

# This workflow will install Python dependencies, build the package and then build the documentation.
name: Build documentation
on:
push:
branches: [ main ]
jobs:
build:
name: build_doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install .
pip install .[dev]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Install notebook requirements
run: |
sudo apt-get install pandoc
- name: Build docs
run: |
sphinx-build -T -E -b html -d docs/build/doctrees ./docs docs/build/html -D exclude_patterns="notebooks/*.ipynb"
- name: Run ghp-import
run: |
ghp-import -n -p -f -x docs/ docs/build/html