ci (feature): use run-parallel
and shared wheel packages for tox
#408
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.
🗒️ Description
tox
withrun-parallel
in Github Actions and pre-commit.tox.ini
to use a shared wheel across testenvs instead of individually installing test-filler as a source distribution.Tricks found in this article https://hynek.me/articles/turbo-charge-tox/.
The speed-up mainly comes from running the
docs
toxenv
in parallel to thetest
env (so you'll never save more time thandocs
takes) - not sure how much of a tangible impact this will have on Github Actions.But adding
run-parallel
to tox is certainly worthwhile locally. This must be done manually (or via pre-commit).Comparison with Cancun tests (on 69e1d92):
./src/
Comparison in Github Actions
There seems to be such a large variance of running times for "Run Tox Verifications" that these changes will unlikely noticeably impact ci/cd:
🔗 Related Issues
None
✅ Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.