Update GitHub Actions to use latest Ubuntu and Python#299
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the documentation build workflow to run on a more current GitHub-hosted runner image and adjusts Python setup behavior for the docs job.
Changes:
- Switch the framework docs job from
ubuntu-20.04toubuntu-latest. - Remove the pinned Python version from the
actions/setup-pythonstep.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| framework-docs: | ||
| runs-on: ubuntu-20.04 | ||
| runs-on: ubuntu-latest | ||
| steps: |
There was a problem hiding this comment.
Using ubuntu-latest makes the workflow non-deterministic because GitHub periodically repoints it to a newer Ubuntu LTS, which can break docs builds unexpectedly. If the goal is “latest” while staying stable, consider pinning to a specific runner image (e.g., ubuntu-24.04) and updating it intentionally when needed.
| - name: Setup Python | ||
| uses: actions/setup-python@v6 |
There was a problem hiding this comment.
The setup-python step no longer pins a Python version, so the job will use whatever Python happens to be preinstalled on the runner (which may not be the “latest” and can change over time). To match the PR intent and keep builds predictable, specify python-version explicitly (e.g., 3.x to track the latest 3.x on GitHub-hosted runners, or a конкрет version like 3.12).
No description provided.