From a0b8643fb996da91a7c952d75ebed125d39ef419 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Fri, 3 Jan 2025 09:53:28 +0100 Subject: [PATCH] CI: Use actions/setup-python cache for pip --- .github/workflows/package-pypi.yml | 2 ++ .github/workflows/package-windows.yml | 4 ++++ .github/workflows/run-tests.yml | 1 + 3 files changed, 7 insertions(+) diff --git a/.github/workflows/package-pypi.yml b/.github/workflows/package-pypi.yml index 2cafcaf02d..1512e7df1f 100644 --- a/.github/workflows/package-pypi.yml +++ b/.github/workflows/package-pypi.yml @@ -17,6 +17,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.13 + cache: 'pip' - name: Install dependencies (Linux) if: runner.os == 'linux' run: | @@ -84,6 +85,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: Install gettext (macOS) if: runner.os == 'macOS' run: | diff --git a/.github/workflows/package-windows.yml b/.github/workflows/package-windows.yml index a0f9cb7c78..971fec0493 100644 --- a/.github/workflows/package-windows.yml +++ b/.github/workflows/package-windows.yml @@ -27,6 +27,10 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.13 + cache: 'pip' + cache-dependency-path: | + requirements-build.txt + requirements-win.txt - name: Setup Windows build environment run: | & .\scripts\package\win-setup.ps1 ` diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ff070121ac..b50d77357f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,6 +19,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: Install dependencies (Linux) if: runner.os == 'linux' run: |