Refactor CI workflow and add composite action for virtual environment… #172
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.
… setup
Pull Request Template
Description
This pull request refactors the Continuous Integration (CI) workflow for the
tsbootstrap
project to enhance efficiency, maintainability, and performance. Key changes include:setup-venv
) for setting up the Python virtual environment usinguv
. This eliminates redundant steps across multiple jobs and ensures consistency.actions/cache@v4
to significantly reduce build times by reusing previously installed packages.Test Core Dependencies
,Test Without Optional Dependencies
, andTest With All Optional Dependencies
) to improve readability and understanding.bash
for Linux/macOS andpwsh
for Windows) to prevent environment-related issues.contents: read
following the principle of least privilege, enhancing security.CI.yml
and composite action files to aid future contributors in understanding the workflow and its components.These improvements streamline the CI process, reduce maintenance overhead, and enhance the overall developer experience, ensuring that the
tsbootstrap
project remains robust and scalable.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
The changes have been tested through the following steps:
Test Core Dependencies
,Test Without Optional Dependencies
,Test With All Optional Dependencies
, andTest Docs Build
) execute successfully across multiple Python versions and operating systems.setup-venv
composite action correctly installsuv
, updates thePATH
, and creates the virtual environment on both Windows and Linux/macOS runners.docs
job runs without errors and uploads the built documentation as artifacts.Checklist:
Additional Information (if applicable)
shell
property error in the composite action by specifying the appropriate shell for each step.Add All Contributors Command
Remember to acknowledge your contributions, replace
contribution_type
with your contribution (code, doc, etc.):