Skip to content

Commit 71d1f33

Browse files
committed
Issue #2944: caching pip downloads in workflows
1 parent 4ba1b5d commit 71d1f33

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.github/workflows/black-format.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
3030
with:
3131
python-version: "3.13"
32+
cache: 'pip'
33+
cache-dependency-path: 'requirements.txt'
3234

3335
- name: Install dependencies
3436
run: |

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
7070
with:
7171
python-version: ${{ matrix.python_version }}
72+
cache: 'pip'
73+
cache-dependency-path: 'requirements.txt'
7274
- if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-22.04-arm'
7375
run: sudo apt-get install -y libyaml-dev
7476
- name: Upgrade pip, setuptools

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
4747
with:
4848
python-version: "3.13"
49+
cache: 'pip'
50+
cache-dependency-path: 'requirements.txt'
4951
- name: Install dependencies
5052
run: |
5153
pip install -r requirements.txt
@@ -74,6 +76,8 @@ jobs:
7476
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
7577
with:
7678
python-version: "3.13"
79+
cache: 'pip'
80+
cache-dependency-path: 'requirements.txt'
7781
- name: Install capa
7882
run: |
7983
pip install -r requirements.txt
@@ -106,6 +110,8 @@ jobs:
106110
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
107111
with:
108112
python-version: ${{ matrix.python-version }}
113+
cache: 'pip'
114+
cache-dependency-path: 'requirements.txt'
109115
- name: Install pyyaml
110116
if: matrix.os == 'ubuntu-22.04'
111117
run: sudo apt-get install -y libyaml-dev
@@ -147,6 +153,8 @@ jobs:
147153
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
148154
with:
149155
python-version: ${{ matrix.python-version }}
156+
cache: 'pip'
157+
cache-dependency-path: 'requirements.txt'
150158
- name: Install pyyaml
151159
if: ${{ env.BN_SERIAL != 0 }}
152160
run: sudo apt-get install -y libyaml-dev
@@ -190,6 +198,8 @@ jobs:
190198
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
191199
with:
192200
python-version: ${{ matrix.python-version }}
201+
cache: 'pip'
202+
cache-dependency-path: 'requirements.txt'
193203
- name: Set up Java ${{ matrix.java-version }}
194204
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
195205
with:
@@ -240,6 +250,8 @@ jobs:
240250
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
241251
with:
242252
python-version: ${{ matrix.python-version }}
253+
cache: 'pip'
254+
cache-dependency-path: 'requirements.txt'
243255
- name: Setup uv
244256
if: ${{ env.IDA_LICENSE_ID != 0 }}
245257
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0

.github/workflows/web-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
8181
with:
8282
python-version: '3.12'
83+
cache: 'pip'
84+
cache-dependency-path: './web/rules/requirements.txt'
8385
- uses: extractions/setup-just@v2
8486
- name: Install pagefind
8587
uses: supplypike/setup-bin@v4

0 commit comments

Comments
 (0)