chore: update Pixi to 0.23.0 in CI #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
pixi-version: "0.23.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.18.0", "0.23.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 --locked --environment py${{ matrix.python-version }} test-py${{ matrix.python-version }} | |
- name: Store coverage | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pixi-version }} | |
path: .coverage.Linux* | |
coverage: | |
needs: test | |
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: Fetch coverage | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: coverage-* | |
merge-multiple: true | |
- name: Combine coverage and generate report | |
run: pixi run --locked --environment test coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
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 --locked --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 --locked --environment mypy type-check |