Skip to content

chore: update Pixi in CI #120

chore: update Pixi in CI

chore: update Pixi in CI #120

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
env:
pixi-version: "0.30.0"
jobs:
test:
strategy:
matrix:
# Remove the noisy windows tests from matrix until figuring out the signals issue
# https://github.com/ipython/ipykernel/issues/713
# https://stackoverflow.com/questions/70841648/jupyter-reverts-signal-handler-to-default-when-running-next-cell
os: [ubuntu-latest, macos-latest]
pixi-version: ["0.21.0", "0.30.0"]
python-version: ["38", "39", "310", "311", "312"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Pixi ${{ matrix.pixi-version }}
uses: prefix-dev/setup-pixi@v0.8.0
with:
pixi-version: v${{ matrix.pixi-version }}
run-install: false
- name: Test with pixi
run: pixi run --environment py${{ matrix.python-version }} test-py${{ matrix.python-version }}
lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Pixi ${{ env.pixi-version }}
uses: prefix-dev/setup-pixi@v0.8.0
with:
pixi-version: v${{ env.pixi-version }}
run-install: false
- name: Run code quality checks
run: pixi run --environment ruff lint
type-check:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Pixi ${{ env.pixi-version }}
uses: prefix-dev/setup-pixi@v0.8.0
with:
pixi-version: v${{ env.pixi-version }}
run-install: false
- name: Run type checks
run: pixi run --environment mypy type-check