This repository was archived by the owner on Nov 23, 2025. It is now read-only.
Add reusable workflow and composite actions for Python tests #52
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.
Adds reusable workflow infrastructure to DRY the Python test workflows by extracting common WSL/non-WSL test steps into parameterized composite actions.
Changes
.github/workflows/python-tests-reusable.yml- Reusable workflow accepting matrix as JSON input, delegates to composite actions based onmatrix.shell.github/actions/python-tests/test-steps/action.yml- Non-WSL composite action: setup-python, deps, lint, test, conditional coverage upload.github/actions/python-tests/test-steps-wsl/action.yml- WSL composite action: WSL setup, Python install, deps, lint, test, conditional coverage upload.github/workflows/python-tests.yml- Addedci/**to workflow triggers alongside existingcopilot/**patternUsage
Caller workflows can invoke via:
Both composite actions accept
python-versionandosinputs. The reusable workflow's shell defaulting logic routes to the appropriate composite action based onmatrix.shell == 'wsl-bash'.Original prompt
Add a reusable workflow and two composite actions to simplify and DRY the Python test workflows. Create a new branch and open a PR that adds the following files:
Files to add (exact contents):