Skip to content

ci: add pip caching and bump Python on macOS/Windows#939

Merged
igorls merged 2 commits intoMemPalace:developfrom
mvalentsev:ci/pip-cache-and-python-bump
Apr 25, 2026
Merged

ci: add pip caching and bump Python on macOS/Windows#939
igorls merged 2 commits intoMemPalace:developfrom
mvalentsev:ci/pip-cache-and-python-bump

Conversation

@mvalentsev
Copy link
Copy Markdown
Contributor

@mvalentsev mvalentsev commented Apr 16, 2026

What

  • Enable setup-python's built-in cache: 'pip' on all four CI jobs (test-linux, test-windows, test-macos, lint). Avoids re-downloading ~300 MB of dependencies (chromadb, onnxruntime, hnswlib) on every run.
  • Bump macOS and Windows from Python 3.9 to 3.11. Linux matrix already covers 3.9/3.11/3.13, so cross-platform runs on 3.9 are redundant. Python 3.11 is meaningfully faster and has better ARM support on macOS.

Why

test-windows typically takes 3m30s–5m vs ~1m30s on Linux. Dependency installation accounts for ~95 MB of wheel downloads per push, which cache: 'pip' avoids on subsequent runs.

Related

#277 also proposes bumping Windows to 3.11 (as part of a broader CI restructure). This PR is a smaller, standalone change that can land independently.

Test plan

  • CI passes on all platforms (Linux 3.9/3.11/3.13, Windows 3.11, macOS 3.11, lint)
  • cache: 'pip' active on all four jobs (visible in the Set up Python step)

@mvalentsev mvalentsev marked this pull request as ready for review April 16, 2026 07:03
@mvalentsev mvalentsev requested a review from bensig as a code owner April 16, 2026 07:03
@mvalentsev
Copy link
Copy Markdown
Contributor Author

@igorls would appreciate your eyes on this when you get a chance.

@igorls igorls added enhancement New feature or request area/ci CI/CD and workflows labels Apr 24, 2026
Enable setup-python's built-in pip cache on all CI jobs to avoid
re-downloading ~300 MB of dependencies (chromadb, onnxruntime, hnswlib)
on every run.

Bump macOS and Windows from Python 3.9 to 3.11 -- Linux matrix already
covers 3.9 compatibility, and 3.11 is faster on these platforms.
@mvalentsev mvalentsev force-pushed the ci/pip-cache-and-python-bump branch from cefb20b to b291d2a Compare April 24, 2026 07:01
@igorls igorls merged commit 320aab3 into MemPalace:develop Apr 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci CI/CD and workflows enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants