refactor: use backported sentinel type #789
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| docs: | |
| name: Check docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| - run: uv sync --group docs | |
| # --strict turns warnings into errors, so a docs code block that fails to execute | |
| # at build time (e.g. a non-exec python fence disrupting a later exec="true" block) | |
| # fails CI instead of merging as a silent warning. | |
| - run: uv run mkdocs build --strict | |
| env: | |
| DISABLE_MKDOCS_2_WARNING: "true" | |
| NO_MKDOCS_2_WARNING: "true" | |
| - run: uv run python ci/check_unlinked_types.py | |
| continue-on-error: true |