Skip to content

Commit f3ef01b

Browse files
committed
Add caching of Pixi lock
1 parent e038774 commit f3ef01b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ env:
2121
FORCE_COLOR: 3
2222

2323
jobs:
24+
cache-pixi-lock:
25+
uses: Parcels-code/Parcels/.github/workflows/cache-pixi-lock.yml@58cdd6185b3af03785c567914a070288ffd804e0
26+
2427
tests:
2528
name: "Unit tests: ${{ matrix.runs-on }} | pixi run -e ${{ matrix.pixi-environment }} tests"
2629
runs-on: ${{ matrix.runs-on }}
30+
needs: cache-pixi-lock
2731
strategy:
2832
fail-fast: false
2933
matrix:
@@ -34,6 +38,10 @@ jobs:
3438
- uses: actions/checkout@v4
3539
with:
3640
fetch-depth: 0
41+
- uses: actions/cache/restore@v4
42+
with:
43+
path: pixi.lock
44+
key: ${{ needs.cache-pixi-lock.outputs.cache-id }}
3745
- uses: prefix-dev/[email protected]
3846
with:
3947
cache: true
@@ -51,10 +59,15 @@ jobs:
5159
typechecking:
5260
name: "TypeChecking: pixi run typing"
5361
runs-on: ubuntu-latest
62+
needs: cache-pixi-lock
5463
steps:
5564
- uses: actions/checkout@v4
5665
with:
5766
fetch-depth: 0
67+
- uses: actions/cache/restore@v4
68+
with:
69+
path: pixi.lock
70+
key: ${{ needs.cache-pixi-lock.outputs.cache-id }}
5871
- uses: prefix-dev/[email protected]
5972
with:
6073
cache: true

0 commit comments

Comments
 (0)