feat: allow skipping python setup#1310
Merged
Merged
Conversation
Contributor
Author
RobPasMue
requested changes
May 12, 2026
Member
RobPasMue
left a comment
There was a problem hiding this comment.
Big pitfall IMO with this check - I'm fine with the skipping logic but we should definitely remove the check introduced to match the python-version input
MaxJPRey
approved these changes
May 13, 2026
Contributor
MaxJPRey
left a comment
There was a problem hiding this comment.
Nice. I would be curious to see how much time we can save at large in the ecosystem with this option set to false 😃
moe-ad
pushed a commit
that referenced
this pull request
May 22, 2026
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a skip-python-setup input to the affected composite actions. The default value is
false, which leads to keeping the same behavior as before. When set totrue:This provides flexibility for container-based environments with a pre-installed Python when the current implementation does not. As a matter of fact, the latest release of
ansys/actionscan't be used to build wheelhouse in a rocky container due toglibcincompatibilities, even if one does manually install python before callingansys/actions/build-wheelhouse.The affected actions are currently limited to
build-library,build-wheelhouse,doc-buildandtests-pytestas they are the ones most likely benefiting from it. Thebuildones would allow to build on specific environments, e.g. rocky; thedocandtestsones are used in some of our self-hosted runners.