File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313jobs :
1414 cache-pixi-lock :
15- name : Generate output
15+ name : Pixi lock
1616 runs-on : ubuntu-latest
1717 outputs :
1818 cache-id : ${{ steps.restore.outputs.cache-primary-key }}
1919 steps :
20- - uses : actions/checkout@v5
20+ - uses : actions/checkout@v6
2121 with :
2222 fetch-depth : 0
2323 submodules : recursive
2424 - name : Get current date
2525 id : date
2626 run : echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
27- - uses : actions/cache/restore@v4
27+ - uses : actions/cache/restore@v5
2828 id : restore
2929 with :
3030 path : |
3131 pixi.lock
32- key : ${{ steps.date.outputs.date }}_${{inputs.pixi-version}}_${{hashFiles('pixi.toml')}}
33- - uses : prefix-dev/setup-pixi@v0.9.0
32+ key : ${{ steps.date.outputs.date }}_${{ inputs.pixi-version }}_${{hashFiles('pixi.toml')}}
33+ - uses : prefix-dev/setup-pixi@v0.9.3
3434 if : ${{ !steps.restore.outputs.cache-hit }}
3535 with :
3636 pixi-version : ${{ inputs.pixi-version }}
3737 run-install : false
3838 - name : Run pixi lock
3939 if : ${{ !steps.restore.outputs.cache-hit }}
4040 run : pixi lock
41- - uses : actions/cache/save@v4
41+ - uses : actions/cache/save@v5
4242 if : ${{ !steps.restore.outputs.cache-hit }}
4343 id : cache
4444 with :
4545 path : |
4646 pixi.lock
4747 key : ${{ steps.restore.outputs.cache-primary-key }}
4848 - name : Upload pixi.lock
49- uses : actions/upload-artifact@v5
49+ uses : actions/upload-artifact@v6
5050 with :
5151 name : pixi-lock
5252 path : pixi.lock
Original file line number Diff line number Diff line change @@ -16,9 +16,14 @@ defaults:
1616 run :
1717 shell : bash -el {0}
1818
19+ env :
20+ PIXI_VERSION : " v0.63.0"
21+
1922jobs :
2023 cache-pixi-lock :
2124 uses : ./.github/workflows/cache-pixi-lock.yml
25+ with :
26+ pixi-version : " v0.62.2" # keep in sync with env var above
2227 unit-test :
2328 name : " Unit tests: ${{ matrix.os }} | pixi run -e ${{ matrix.pixi-environment }} tests"
2429 runs-on : ${{ matrix.os }}-latest
4954 key : ${{ needs.cache-pixi-lock.outputs.cache-id }}
5055 - uses : prefix-dev/setup-pixi@v0.9.0
5156 with :
57+ pixi-version : ${{ env.PIXI_VERSION }}
5258 cache : true
5359 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released
5460 # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
@@ -112,6 +118,7 @@ jobs:
112118 key : ${{ needs.cache-pixi-lock.outputs.cache-id }}
113119 - uses : prefix-dev/setup-pixi@v0.9.0
114120 with :
121+ pixi-version : ${{ env.PIXI_VERSION }}
115122 cache : true
116123 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released
117124 - name : Integration test
@@ -159,6 +166,7 @@ jobs:
159166 key : ${{ needs.cache-pixi-lock.outputs.cache-id }}
160167 - uses : prefix-dev/setup-pixi@v0.9.0
161168 with :
169+ pixi-version : ${{ env.PIXI_VERSION }}
162170 cache : true
163171 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released
164172 - name : Typechecking
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ version = "dynamic" # dynamic versioning needs better support in pixi https://gi
1010license = " MIT" # can remove this once https://github.com/prefix-dev/pixi-build-backends/issues/397 is resolved
1111
1212[package .build ]
13- backend = { name = " pixi-build-python" , version = " == 0.4.0 " }
13+ backend = { name = " pixi-build-python" , version = " 0.4.* " }
1414
1515[package .host-dependencies ]
1616setuptools = " *"
You can’t perform that action at this time.
0 commit comments