Build docs with the Python version from .python-version (#49603)
* Build docs with the Python version from .python-version
The doc-builder reusable workflows default to the ubuntu-22.04 system
Python (3.10), which breaks once transformers requires >=3.11 (#49251).
Read .python-version and pass it via the python_version input so the
doc build follows the repo's Python version.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Gate comment-triggered doc build on verify_pr_commit
python-version and build-doc ran even when verify_pr_commit failed (PR
updated after the build-doc comment). Require it to succeed, and report
the custom-doc-build status as failed in that case instead of treating
the skipped build as success.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>