From e2444a190c7c6dfd4c8ffa593565515f2e66e659 Mon Sep 17 00:00:00 2001 From: mvalentsev Date: Thu, 16 Apr 2026 11:57:36 +0500 Subject: [PATCH 1/2] ci: add pip caching and bump Python on macOS/Windows 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. --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 242922e8a..57ef5f8eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - run: pip install -e ".[dev]" - run: python -m pytest tests/ -v --ignore=tests/benchmarks --cov=mempalace --cov-report=term-missing --cov-fail-under=80 --durations=10 @@ -26,7 +27,8 @@ jobs: - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: - python-version: "3.9" + python-version: "3.11" + cache: 'pip' - run: pip install -e ".[dev]" - run: python -m pytest tests/ -v --ignore=tests/benchmarks --cov=mempalace --cov-report=term-missing --cov-fail-under=80 --durations=10 @@ -36,7 +38,8 @@ jobs: - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: - python-version: "3.9" + python-version: "3.11" + cache: 'pip' - run: pip install -e ".[dev]" - run: python -m pytest tests/ -v --ignore=tests/benchmarks --cov=mempalace --cov-report=term-missing --cov-fail-under=80 --durations=10 lint: @@ -46,6 +49,7 @@ jobs: - uses: actions/setup-python@v6 with: python-version: "3.11" + cache: 'pip' - run: pip install "ruff>=0.4.0,<0.5" - run: ruff check . - run: ruff format --check . From b291d2a2406f946df9d5797cbc4f9caae229295f Mon Sep 17 00:00:00 2001 From: mvalentsev Date: Mon, 20 Apr 2026 13:32:49 +0500 Subject: [PATCH 2/2] ci: re-run to verify pip cache restore