Skip to content

Commit a3120f0

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

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/black-format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
3030
with:
3131
python-version: "3.13"
32+
cache: 'pip'
3233

3334
- name: Install dependencies
3435
run: |

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
7070
with:
7171
python-version: ${{ matrix.python_version }}
72+
cache: 'pip'
7273
- if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-22.04-arm'
7374
run: sudo apt-get install -y libyaml-dev
7475
- name: Upgrade pip, setuptools

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
2323
with:
2424
python-version: '3.10'
25+
cache: 'pip'
2526
- name: Install dependencies
2627
run: |
2728
python -m pip install --upgrade pip

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
4747
with:
4848
python-version: "3.13"
49+
cache: 'pip'
4950
- name: Install dependencies
5051
run: |
5152
pip install -r requirements.txt
@@ -74,6 +75,7 @@ jobs:
7475
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
7576
with:
7677
python-version: "3.13"
78+
cache: 'pip'
7779
- name: Install capa
7880
run: |
7981
pip install -r requirements.txt
@@ -106,6 +108,7 @@ jobs:
106108
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
107109
with:
108110
python-version: ${{ matrix.python-version }}
111+
cache: 'pip'
109112
- name: Install pyyaml
110113
if: matrix.os == 'ubuntu-22.04'
111114
run: sudo apt-get install -y libyaml-dev
@@ -147,6 +150,7 @@ jobs:
147150
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
148151
with:
149152
python-version: ${{ matrix.python-version }}
153+
cache: 'pip'
150154
- name: Install pyyaml
151155
if: ${{ env.BN_SERIAL != 0 }}
152156
run: sudo apt-get install -y libyaml-dev
@@ -190,6 +194,7 @@ jobs:
190194
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
191195
with:
192196
python-version: ${{ matrix.python-version }}
197+
cache: 'pip'
193198
- name: Set up Java ${{ matrix.java-version }}
194199
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
195200
with:
@@ -240,6 +245,7 @@ jobs:
240245
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
241246
with:
242247
python-version: ${{ matrix.python-version }}
248+
cache: 'pip'
243249
- name: Setup uv
244250
if: ${{ env.IDA_LICENSE_ID != 0 }}
245251
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0

.github/workflows/web-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
8181
with:
8282
python-version: '3.12'
83+
cache: 'pip'
8384
- uses: extractions/setup-just@v2
8485
- name: Install pagefind
8586
uses: supplypike/setup-bin@v4

0 commit comments

Comments
 (0)