Make sure the kernel spec uses the path to Pixi (#66) #230
This file contains hidden or 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 | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| pixi-version: ['0.39.0', '0.50.2'] | |
| 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.9 | |
| with: | |
| pixi-version: v${{ matrix.pixi-version }} | |
| run-install: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Test, lint and typecheck | |
| run: uv run tox | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| # https://stackoverflow.com/a/75250293 | |
| branch-protection: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: always() | |
| steps: | |
| - name: All tests passed | |
| if: ${{ !(contains(needs.*.result, 'failure')) }} | |
| run: exit 0 | |
| - name: Some tests failed | |
| if: ${{ contains(needs.*.result, 'failure') }} | |
| run: exit 1 |