Skip to content

Commit 3115f06

Browse files
Fix Pixi caching in CI (#321)
1 parent c249117 commit 3115f06

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ env:
1919
# Many color libraries just need this to be set to any value, but at least
2020
# one distinguishes color depth, where "3" -> "256-bit color".
2121
FORCE_COLOR: 3
22-
PIXI_VERSION: "v0.63.2"
2322

2423
jobs:
2524
cache-pixi-lock:
@@ -29,10 +28,8 @@ jobs:
2928
pixi-version: ${{ steps.pixi-lock.outputs.pixi-version }}
3029
steps:
3130
- uses: actions/checkout@v4
32-
- uses: Parcels-code/pixi-lock/create-and-cache@9a2866f8258b87a3c616d5ad7d51c6cd853df78b
31+
- uses: Parcels-code/pixi-lock/create-and-cache@38495788b79a5ff26009aecc15daa9a8310b8832 # v0.1.0
3332
id: pixi-lock
34-
with:
35-
pixi-version: ${{env.PIXI_VERSION}}
3633
- uses: actions/upload-artifact@v6 # make available as an artifact for local testing
3734
with:
3835
name: pixi-lock
@@ -45,13 +42,16 @@ jobs:
4542
strategy:
4643
fail-fast: false
4744
matrix:
48-
pixi-environment: ["test-py310", "test-py312"]
45+
pixi-environment: ["test-latest"]
4946
runs-on: [ubuntu-latest, windows-latest, macos-14]
47+
include:
48+
- pixi-environment: "test-py310"
49+
runs-on: ubuntu-latest
5050
steps:
5151
- uses: actions/checkout@v6
5252
with:
5353
fetch-depth: 0
54-
- uses: Parcels-code/pixi-lock/restore@9a2866f8258b87a3c616d5ad7d51c6cd853df78b
54+
- uses: Parcels-code/pixi-lock/restore@38495788b79a5ff26009aecc15daa9a8310b8832 # v0.1.0
5555
with:
5656
cache-key: ${{ needs.cache-pixi-lock.outputs.cache-key }}
5757
- uses: prefix-dev/setup-pixi@v0.9.4
@@ -78,7 +78,7 @@ jobs:
7878
# - uses: actions/checkout@v4
7979
# with:
8080
# fetch-depth: 0
81-
# - uses: Parcels-code/pixi-lock/restore@9a2866f8258b87a3c616d5ad7d51c6cd853df78b
81+
# - uses: Parcels-code/pixi-lock/restore@38495788b79a5ff26009aecc15daa9a8310b8832 # v0.1.0
8282
# with:
8383
# cache-key: ${{ needs.cache-pixi-lock.outputs.cache-key }}
8484
# - uses: prefix-dev/setup-pixi@v0.9.4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# pixi environments
22
.pixi/*
33
!.pixi/config.toml
4+
pixi.lock
45

56

67
# Byte-compiled / optimized / DLL files

0 commit comments

Comments
 (0)