Repository navigation
Speed up CI installs - #248
Merged
Merged
Conversation
- Install CPU-only torch before the package, so pip skips about 3 GB of CUDA wheels the runners cannot use - Install only the libvips runtime from apt; OpenSlide comes from the openslide-bin wheel and pyvips does not need the headers - Cancel a PR's previous run when a new commit is pushed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Shortens CI without dropping any test. In #246's run, the tests took about 10 s per job; almost all of the rest went to installing dependencies:
Changes
pip install -e .pulled the CUDA build of torch and its dependencies, about 3 GB per job (torch 539 MB, cuDNN 519 MB, cuBLAS 405 MB, triton 286 MB, ...). The runners have no GPU. torch and torchvision are now installed from the CPU index first; both are unpinned inpyproject.toml, so pip keeps them.libvips-tools, no recommends). pyvips loads libvips without the headers (libvips-dev), and OpenSlide comes from theopenslide-binwheel, soopenslide-toolsis not needed.Same three Python versions, same test command.
Verification
This PR's own CI run uses the new workflow. The test count should stay at 164 and the job time should drop; see the checks below.
🤖 Generated with Claude Code