Upgrade Website #5448
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
name: Docs | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
docs: | |
name: Build docs | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
env: | |
# `uv pip ...` requires venv by default. This skips that requirement. | |
UV_SYSTEM_PYTHON: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
env: | |
ALLOW_LATEST_GPYTORCH_LINOP: true | |
run: | | |
uv pip install git+https://github.com/cornellius-gp/linear_operator.git | |
uv pip install git+https://github.com/cornellius-gp/gpytorch.git | |
uv pip install .[dev, tutorials] | |
- name: Validate Sphinx | |
run: | | |
python scripts/validate_sphinx.py -p "$(pwd)" | |
- name: Run sphinx | |
run: | | |
# warnings treated as errors | |
sphinx-build -WT --keep-going sphinx/source sphinx/build | |
- name: Validate and parse tutorials | |
run: | | |
python scripts/convert_ipynb_to_mdx.py --clean |