Repository navigation
Fix GitHub Release creation in the publish workflow #23
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 build check | |
| on: [ push, pull_request ] | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ 3.11 ] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| run: | | |
| pip install poetry | |
| - name: Install dependencies with Poetry | |
| run: | | |
| poetry install --no-interaction --no-ansi --with docs | |
| - name: Show installed packages | |
| run: poetry show | |
| - name: Install packages | |
| run: poetry run pip install . | |
| # No-warnings policy: the build runs with -W --keep-going (see | |
| # docs/Makefile), so any warning — including an unresolved | |
| # cross-reference under nitpicky — exits non-zero on its own. | |
| - name: Build | |
| run: poetry run make -C docs/ html | |
| # The linkcheck builder exits non-zero on broken or timed-out links. | |
| - name: Check links | |
| run: poetry run sphinx-build -b linkcheck docs docs/_build/linkcheck |