Skip to content

Commit 781c85b

Browse files
authored
⚡️(ci) use setup-python cache option
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.
1 parent 64f967c commit 781c85b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/crowdin_upload.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
uses: actions/checkout@v4
2424
# Backend i18n
2525
- name: Install Python
26-
uses: actions/setup-python@v3
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: "3.13.3"
29+
cache: "pip"
2930
- name: Upgrade pip and setuptools
3031
run: pip install --upgrade pip setuptools
3132
- name: Install development dependencies

.github/workflows/impress.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ jobs:
8989
- name: Checkout repository
9090
uses: actions/checkout@v2
9191
- name: Install Python
92-
uses: actions/setup-python@v3
92+
uses: actions/setup-python@v5
9393
with:
9494
python-version: "3.13.3"
95+
cache: "pip"
9596
- name: Upgrade pip and setuptools
9697
run: pip install --upgrade pip setuptools
9798
- name: Install development dependencies
@@ -184,9 +185,10 @@ jobs:
184185
mc version enable impress/impress-media-storage"
185186
186187
- name: Install Python
187-
uses: actions/setup-python@v3
188+
uses: actions/setup-python@v5
188189
with:
189190
python-version: "3.13.3"
191+
cache: "pip"
190192

191193
- name: Install development dependencies
192194
run: pip install --user .[dev]

0 commit comments

Comments
 (0)