From 3f0abbc1211c8ca650138ad1a7489946371007a8 Mon Sep 17 00:00:00 2001 From: Suke0811 <49264928+Suke0811@users.noreply.github.com> Date: Sun, 12 Oct 2025 18:47:37 +0900 Subject: [PATCH] Enable pip caching in CI workflows --- .github/workflows/benchmark.yml | 10 ++++++++++ .github/workflows/ci.yml | 5 +++++ .github/workflows/coverage.yml | 5 +++++ .github/workflows/pypi-publish.yml | 9 +++++++-- 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index be498fe..fc8a271 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -30,6 +30,11 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt + pyproject.toml - name: Install dependencies run: | @@ -66,6 +71,11 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.12' + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt + pyproject.toml - name: Download all artifacts uses: actions/download-artifact@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0222cd..1a4540c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,11 @@ jobs: - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt + pyproject.toml - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7c64b69..ae081d3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -18,6 +18,11 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt + pyproject.toml - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 473c755..c5b0d3f 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -16,9 +16,14 @@ jobs: uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: '3.12' + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt + pyproject.toml - name: Install dependencies run: |