diff --git a/.github/workflows/cache-pixi-lock.yml b/.github/workflows/cache-pixi-lock.yml index e190ce7b11..e938a7664d 100644 --- a/.github/workflows/cache-pixi-lock.yml +++ b/.github/workflows/cache-pixi-lock.yml @@ -12,25 +12,25 @@ on: jobs: cache-pixi-lock: - name: Generate output + name: Pixi lock runs-on: ubuntu-latest outputs: cache-id: ${{ steps.restore.outputs.cache-primary-key }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 submodules: recursive - name: Get current date id: date run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" - - uses: actions/cache/restore@v4 + - uses: actions/cache/restore@v5 id: restore with: path: | pixi.lock - key: ${{ steps.date.outputs.date }}_${{inputs.pixi-version}}_${{hashFiles('pixi.toml')}} - - uses: prefix-dev/setup-pixi@v0.9.0 + key: ${{ steps.date.outputs.date }}_${{ inputs.pixi-version }}_${{hashFiles('pixi.toml')}} + - uses: prefix-dev/setup-pixi@v0.9.3 if: ${{ !steps.restore.outputs.cache-hit }} with: pixi-version: ${{ inputs.pixi-version }} @@ -38,7 +38,7 @@ jobs: - name: Run pixi lock if: ${{ !steps.restore.outputs.cache-hit }} run: pixi lock - - uses: actions/cache/save@v4 + - uses: actions/cache/save@v5 if: ${{ !steps.restore.outputs.cache-hit }} id: cache with: @@ -46,7 +46,7 @@ jobs: pixi.lock key: ${{ steps.restore.outputs.cache-primary-key }} - name: Upload pixi.lock - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 with: name: pixi-lock path: pixi.lock diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9d66dbe14..48ac47341d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,14 @@ defaults: run: shell: bash -el {0} +env: + PIXI_VERSION: "v0.63.0" + jobs: cache-pixi-lock: uses: ./.github/workflows/cache-pixi-lock.yml + with: + pixi-version: "v0.62.2" # keep in sync with env var above unit-test: name: "Unit tests: ${{ matrix.os }} | pixi run -e ${{ matrix.pixi-environment }} tests" runs-on: ${{ matrix.os }}-latest @@ -49,6 +54,7 @@ jobs: key: ${{ needs.cache-pixi-lock.outputs.cache-id }} - uses: prefix-dev/setup-pixi@v0.9.0 with: + pixi-version: ${{ env.PIXI_VERSION }} cache: true cache-write: ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache @@ -112,6 +118,7 @@ jobs: key: ${{ needs.cache-pixi-lock.outputs.cache-id }} - uses: prefix-dev/setup-pixi@v0.9.0 with: + pixi-version: ${{ env.PIXI_VERSION }} cache: true cache-write: ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released - name: Integration test @@ -159,6 +166,7 @@ jobs: key: ${{ needs.cache-pixi-lock.outputs.cache-id }} - uses: prefix-dev/setup-pixi@v0.9.0 with: + pixi-version: ${{ env.PIXI_VERSION }} cache: true cache-write: ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released - name: Typechecking diff --git a/pixi.toml b/pixi.toml index 3e28cc342f..f67712291d 100644 --- a/pixi.toml +++ b/pixi.toml @@ -10,7 +10,7 @@ version = "dynamic" # dynamic versioning needs better support in pixi https://gi license = "MIT" # can remove this once https://github.com/prefix-dev/pixi-build-backends/issues/397 is resolved [package.build] -backend = { name = "pixi-build-python", version = "==0.4.0" } +backend = { name = "pixi-build-python", version = "0.4.*" } [package.host-dependencies] setuptools = "*"