Skip to content

Speed up CI installs - #248

Merged
guillaumejaume merged 1 commit into
mainfrom
ci/faster-installs
Nov 18, 2026
Merged

guillaumejaume merged 1 commit into
mainfrom
ci/faster-installs

Conversation

@guillaumejaume

Copy link
Copy Markdown
Contributor

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:

Step Time per job
apt packages 35 s (14 min in one job, a slow mirror)
pip install about 2 min
tests (164) about 10 s

Changes

  • CPU-only torch. 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 in pyproject.toml, so pip keeps them.
  • Smaller apt step. Only the libvips runtime (libvips-tools, no recommends). pyvips loads libvips without the headers (libvips-dev), and OpenSlide comes from the openslide-bin wheel, so openslide-tools is not needed.
  • Cancel outdated runs. A new push to a PR cancels that PR's previous run.

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

- 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>
@guillaumejaume
guillaumejaume merged commit 266b139 into main Nov 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant