From ed5a8c8b3ee6fb1b3a2af406f12e6ab10b9ca082 Mon Sep 17 00:00:00 2001 From: Saurabh Jain Date: Thu, 5 Mar 2026 11:17:09 +0530 Subject: [PATCH 1/2] fix: enable pip dependency caching in CI and release workflows Adds cache: 'pip' to all actions/setup-python steps to cache pip downloads across runs, reducing build times and registry download noise. --- .github/workflows/ci.yml | 3 +++ .github/workflows/release.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72ce4f0..7241d16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' - name: Install dependencies run: pip install -e ".[dev]" @@ -47,6 +48,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: Install dependencies run: pip install -e ".[dev,all]" @@ -72,6 +74,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' - name: Install build tools run: pip install build twine diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b8da96..6705b2d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' - name: Install dependencies run: pip install -e ".[dev,all]" From 865e9972f5a6a159020007ea439a1e70e5d329d3 Mon Sep 17 00:00:00 2001 From: Saurabh Jain Date: Thu, 5 Mar 2026 11:26:52 +0530 Subject: [PATCH 2/2] fix: add cache-dependency-path for pyproject.toml actions/setup-python cache defaults to requirements*.txt for cache key. Since we use pyproject.toml, we need to specify it explicitly or CI will error with 'No file matched'. --- .github/workflows/ci.yml | 3 +++ .github/workflows/release.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7241d16..241f2e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: with: python-version: '3.11' cache: 'pip' + cache-dependency-path: 'pyproject.toml' - name: Install dependencies run: pip install -e ".[dev]" @@ -49,6 +50,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' + cache-dependency-path: 'pyproject.toml' - name: Install dependencies run: pip install -e ".[dev,all]" @@ -75,6 +77,7 @@ jobs: with: python-version: '3.11' cache: 'pip' + cache-dependency-path: 'pyproject.toml' - name: Install build tools run: pip install build twine diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6705b2d..286c1a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,7 @@ jobs: with: python-version: '3.11' cache: 'pip' + cache-dependency-path: 'pyproject.toml' - name: Install dependencies run: pip install -e ".[dev,all]"