@@ -14,7 +14,7 @@ concurrency:
1414
1515env:
1616 FORCE_COLOR: 3
17- PIXI_VERSION: "v0.58.0 "
17+ PIXI_VERSION: "v0.63.1 "
1818
1919jobs:
2020 detect-ci-trigger:
3737 cache-pixi-lock:
3838 uses: ./.github/workflows/cache-pixi-lock.yml
3939 with:
40- pixi-version: "v0.58.0 " # keep in sync with env var above
40+ pixi-version: "v0.63.1 " # keep in sync with env var above
4141 doctest:
4242 name: Doctests
4343 runs-on: "ubuntu-latest"
@@ -244,10 +244,8 @@ jobs:
244244 min-version-policy:
245245 name: Minimum Version Policy
246246 runs-on: "ubuntu-latest"
247- needs: detect-ci-trigger
248- # min-version-policy doesn't work with Pixi yet https://github.com/pydata/xarray/pull/10888#discussion_r2504335457
249- if: false
250- # if: needs.detect-ci-trigger.outputs.triggered == 'false'
247+ needs: [detect-ci-trigger, cache-pixi-lock]
248+ if: needs.detect-ci-trigger.outputs.triggered == 'false'
251249 defaults:
252250 run:
253251 shell: bash -l {0}
@@ -260,18 +258,30 @@ jobs:
260258 with:
261259 fetch-depth: 0 # Fetch all history for all branches and tags.
262260
263- - uses: actions/setup-python@v6
261+ - name: Restore cached pixi lockfile
262+ uses: actions/cache/restore@v5
263+ id: restore-pixi-lock
264264 with:
265- python-version: "3.x"
265+ enableCrossOsArchive: true
266+ path: |
267+ pixi.lock
268+ key: ${{ needs.cache-pixi-lock.outputs.cache-id }}
266269
267- - name: All-deps minimum versions policy
268- uses: xarray-contrib/minimum-dependency-versions@3db8e1c17328ee1e27dfe4db90d908644856eb61 # v1.0.0
270+ - uses: prefix-dev/setup-pixi@v0.9.3
269271 with:
270- policy: ci/policy.yaml
271- environment-paths: ci/requirements/min-all-deps.yml
272+ pixi-version: ${{ env.PIXI_VERSION }}
273+ cache: true
274+ environments: "policy"
275+ cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
272276
273277 - name: Bare minimum versions policy
274- uses: xarray-contrib/minimum-dependency-versions@3db8e1c17328ee1e27dfe4db90d908644856eb61 # v1.0.0
275- with:
276- policy: ci/policy.yaml
277- environment-paths: ci/requirements/bare-minimum.yml
278+ run: |
279+ pixi run policy-bare-minimum
280+
281+ - name: Bare minimum and scipy versions policy
282+ run: |
283+ pixi run policy-bare-min-and-scipy
284+
285+ - name: All-deps minimum versions policy
286+ run: |
287+ pixi run policy-min-versions
0 commit comments