Skip to content

fix(build): explicitly set up Python 3.12 to support Bikeshed v7#230

Merged
sidvishnoi merged 4 commits into
w3c:mainfrom
devincabillo-web:patch-1
May 19, 2026
Merged

fix(build): explicitly set up Python 3.12 to support Bikeshed v7#230
sidvishnoi merged 4 commits into
w3c:mainfrom
devincabillo-web:patch-1

Conversation

@devincabillo-web

Copy link
Copy Markdown
Contributor

Bikeshed v7 introduced a strict requirement for Python 3.12+. Because the default GitHub Actions ubuntu-latest runner uses an older version of Python by default, pipx install 'bikeshed==7.*' fails with a "no matching distribution found" error.

This commit injects actions/setup-python@v5 into the composite action directly before the toolchain setup step. This ensures pipx has the correct environment to install Bikeshed successfully, fixing widespread CI breakages across W3C/Explainer repositories.

Fixes #99

Bikeshed v7 introduced a strict requirement for Python 3.12+. Because the default GitHub Actions `ubuntu-latest` runner uses an older version of Python by default, `pipx install 'bikeshed==7.*'` fails with a "no matching distribution found" error.

This commit injects `actions/setup-python@v5` into the composite action directly before the toolchain setup step. This ensures `pipx` has the correct environment to install Bikeshed successfully, fixing widespread CI breakages across W3C/Explainer repositories.

Fixes w3c#99
@sidvishnoi

Copy link
Copy Markdown
Member

Thanks for this PR @devincabillo-web ! Can we run this setup step only when toolchain is bikeshed using if:?

@devincabillo-web

Copy link
Copy Markdown
Contributor Author

@sidvishnoi Addressed! Please let me know if it looks good on your end.

Comment thread action.yml Outdated
@sidvishnoi
sidvishnoi merged commit eb4c20d into w3c:main May 19, 2026
1 check passed
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.

Ensure correct node/python versions are used

2 participants