Skip to content

Fix Python version parsing in GitHub Actions workflow#12

Closed
AdamRJensen with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-gh-action-issue
Closed

Fix Python version parsing in GitHub Actions workflow#12
AdamRJensen with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-gh-action-issue

Conversation

Copilot AI commented Feb 18, 2026

Copy link
Copy Markdown

YAML interprets unquoted 3.10 as a float, truncating it to 3.1. The workflow was failing with "The version '3.1' with architecture 'x64' was not found".

Changes

  • Quote Python version string in .github/workflows/sphinx-build-deploy.yaml to force string interpretation
- python-version: 3.10
+ python-version: "3.10"

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

The python-version value was being interpreted as 3.1 instead of 3.10
because YAML treats unquoted 3.10 as a float. Adding quotes ensures
it's treated as a string.

Co-authored-by: AdamRJensen <39184289+AdamRJensen@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with the latest GitHub Action Fix Python version parsing in GitHub Actions workflow Feb 18, 2026
Copilot AI requested a review from AdamRJensen February 18, 2026 20:37
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