From 781c85b66b6babf2c9001266419813a30d5ef00c Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Thu, 28 Aug 2025 16:00:16 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F(ci)=20use=20setup-python=20c?= =?UTF-8?q?ache=20option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The setup-python action is able to cache the dependencies and reuse this cache while the pyproject file has not changed. It is easy to setup, just the package manager used has to be declared in the cache settings. --- .github/workflows/crowdin_upload.yml | 3 ++- .github/workflows/impress.yml | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/crowdin_upload.yml b/.github/workflows/crowdin_upload.yml index 83937c1b..404e3032 100644 --- a/.github/workflows/crowdin_upload.yml +++ b/.github/workflows/crowdin_upload.yml @@ -23,9 +23,10 @@ jobs: uses: actions/checkout@v4 # Backend i18n - name: Install Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.13.3" + cache: "pip" - name: Upgrade pip and setuptools run: pip install --upgrade pip setuptools - name: Install development dependencies diff --git a/.github/workflows/impress.yml b/.github/workflows/impress.yml index 02b4ce88..482550d0 100644 --- a/.github/workflows/impress.yml +++ b/.github/workflows/impress.yml @@ -89,9 +89,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - name: Install Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.13.3" + cache: "pip" - name: Upgrade pip and setuptools run: pip install --upgrade pip setuptools - name: Install development dependencies @@ -184,9 +185,10 @@ jobs: mc version enable impress/impress-media-storage" - name: Install Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.13.3" + cache: "pip" - name: Install development dependencies run: pip install --user .[dev]