Skip to content

Commit 34ac8f0

Browse files
committed
setup dependency caching in CI
1 parent b254e35 commit 34ac8f0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
uses: actions/setup-python@v5
4545
with:
4646
python-version: ${{ matrix.python-version }}
47+
cache: "poetry"
4748
- name: Install Just
4849
uses: extractions/setup-just@v2
4950
- name: Install Dependencies

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
uses: actions/setup-python@v5
5353
with:
5454
python-version: ${{ matrix.python-version }}
55+
cache: "poetry"
5556
- name: install-emacs-linux
5657
if: ${{ github.event.inputs.debug == 'true' }}
5758
run: |
@@ -105,6 +106,7 @@ jobs:
105106
uses: actions/setup-python@v5
106107
with:
107108
python-version: ${{ matrix.python-version }}
109+
cache: "poetry"
108110
- name: setup-ssh-debug
109111
if: ${{ github.event.inputs.debug == 'true' }}
110112
uses: mxschmitt/action-tmate@v3
@@ -153,6 +155,7 @@ jobs:
153155
uses: actions/setup-python@v5
154156
with:
155157
python-version: ${{ matrix.python-version }}
158+
cache: "poetry"
156159
- name: install-emacs-macos
157160
if: ${{ github.event.inputs.debug == 'true' }}
158161
run: |
@@ -221,6 +224,7 @@ jobs:
221224
uses: actions/setup-python@v5
222225
with:
223226
python-version: ${{ matrix.python-version }}
227+
cache: "poetry"
224228
- name: install-emacs-macos
225229
if: ${{ github.event.inputs.debug == 'true' }}
226230
run: |
@@ -268,6 +272,7 @@ jobs:
268272
uses: actions/setup-python@v5
269273
with:
270274
python-version: ${{ matrix.python-version }}
275+
cache: "poetry"
271276
- name: install-emacs-linux
272277
if: ${{ github.event.inputs.debug == 'true' }}
273278
run: |
@@ -316,6 +321,7 @@ jobs:
316321
uses: actions/setup-python@v5
317322
with:
318323
python-version: ${{ matrix.python-version }}
324+
cache: "poetry"
319325
- name: install-emacs-linux
320326
if: ${{ github.event.inputs.debug == 'true' }}
321327
run: |
@@ -370,6 +376,7 @@ jobs:
370376
uses: actions/setup-python@v5
371377
with:
372378
python-version: ${{ matrix.python-version }}
379+
cache: "poetry"
373380
- name: install-emacs-macos
374381
if: ${{ github.event.inputs.debug == 'true' }}
375382
run: |
@@ -430,6 +437,7 @@ jobs:
430437
uses: actions/setup-python@v5
431438
with:
432439
python-version: ${{ matrix.python-version }}
440+
cache: "poetry"
433441
- name: install-emacs-macos
434442
if: ${{ github.event.inputs.debug == 'true' }}
435443
run: |
@@ -480,6 +488,7 @@ jobs:
480488
uses: actions/setup-python@v5
481489
with:
482490
python-version: ${{ matrix.python-version }}
491+
cache: "poetry"
483492
- name: install-emacs-macos
484493
if: ${{ github.event.inputs.debug == 'true' }}
485494
run: |
@@ -538,6 +547,7 @@ jobs:
538547
uses: actions/setup-python@v5
539548
with:
540549
python-version: ${{ matrix.python-version }}
550+
cache: "poetry"
541551
- name: install-vim-windows
542552
if: ${{ github.event.inputs.debug == 'true' }}
543553
uses: rhysd/action-setup-vim@v1
@@ -600,6 +610,8 @@ jobs:
600610
detached: true
601611
- uses: actions/checkout@v4
602612
- uses: actions/setup-python@v5
613+
with:
614+
cache: "poetry"
603615
- name: Setup Just
604616
uses: extractions/setup-just@v2
605617
- name: Install Release Dependencies

0 commit comments

Comments
 (0)