Skip to content

Fix CI: update Python version from 3.10.18 to 3.10.20 in docs workflow#318

Merged
JohnGriffiths merged 1 commit intomainfrom
copilot/update-python-version-workflow
Mar 19, 2026
Merged

Fix CI: update Python version from 3.10.18 to 3.10.20 in docs workflow#318
JohnGriffiths merged 1 commit intomainfrom
copilot/update-python-version-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 19, 2026

The docs CI job was failing because actions/setup-python could not find Python 3.10.18 — the runner only provides 3.10.20.

Change

  • .github/workflows/docs.yml: python-version: 3.10.183.10.20
Original prompt

The CI workflow is failing because it requests Python version 3.10.18, which is unavailable on the runner. Only version 3.10.20 is provided. Update .github/workflows/docs.yml to set 'python-version' to '3.10.20' instead of '3.10.18'. Example fix:

- uses: actions/setup-python@v4
  with:
    python-version: '3.10.20'
    architecture: 'x64'

Replace any occurrence of 3.10.18 with 3.10.20 in that workflow file.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: Please find a solution for failing job 67399331846. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.

Assistant: The failure occurred because Python version 3.10.18 (with arch x64) is not available on the runner. The runner provides Python 3.10.20 (x64) instead.

Solution:

  • In your workflow file (.github/workflows/docs.yml), update any step that sets up Python 3.10.18 to use 3.10.20.

Example fix:

- uses: actions/setup-python@v4
  with:
    python-version: '3.10.20'
    architecture: 'x64'

Replace any reference to 3.10.18 with 3.10.20 in docs.yml. This will resolve the version not found error and allow the job to proceed.

User: add that as a PR

Assistant: A pull request will be created to update the workflow and set Python to version 3.10.20, which will resolve the CI failure due to the missing Python 3.10.18 version.

User: actually cancel that - add it ias a modification to this PR

Assistant: To add the correction as a modification to PR #317, you will need to push a commit to the same branch used for that pull request. Here’s how you can do it:

  1. Update the .github/workflows/docs.yml file by changing any reference from python-version: '3.10.18' to python-version: '3.10.20'.
  2. Commit this change to the branch associated with PR Enhance docstrings for JansenRitParams and JansenRitModel #317.
  3. Push your commit; it will automatically update PR Enhance docstrings for JansenRitParams and JansenRitModel #317 with the fix.

Would you like me to generate the exact patch or YAML content for you to use in your commit? If so, please confirm the branch name for PR #317 or let me know if you'd like step-by-step Git commands.

User: nvm, do it as a separate pr then

Assistant: A new pull request will be created to update the workflow, changing the Python version from 3.10.18 to 3.10.20 in .github/workflows/docs.yml to fix the CI failure.

This pull request was created from Copilot chat.


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] Fix CI workflow to use Python version 3.10.20 Fix CI: update Python version from 3.10.18 to 3.10.20 in docs workflow Mar 19, 2026
Copilot AI requested a review from JohnGriffiths March 19, 2026 14:17
@JohnGriffiths JohnGriffiths marked this pull request as ready for review March 19, 2026 14:19
@JohnGriffiths JohnGriffiths merged commit 8e1229f into main Mar 19, 2026
2 checks passed
@github-actions
Copy link
Copy Markdown

📖 Documentation preview for this PR is available at:
https://griffithslab.github.io/whobpyt/pr-318/

This preview will be updated as you push new commits to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants