Day4 #47
Workflow file for this run
This file contains hidden or 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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| docs: | |
| name: Build docs and check links | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: sudo apt-get update && sudo apt-get install -y pandoc graphviz | |
| - uses: ts-graphviz/setup-graphviz@v2 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| cache: pip | |
| # Keep in sync with .readthedocs.yaml | |
| python-version-file: .python-version | |
| - run: python -m pip install -e ".[docs]" | |
| - run: python -m sphinx -nb html docs/ docs/_build/html | |
| - run: python -m sphinx -b linkcheck docs/ docs/_build/html |