π· Use pixi for tests and CI #467
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
# TODO: setup auto-update pixi.lock https://pixi.sh/latest/advanced/updates_github_actions/#how-to-use | |
name: Test and Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
label: linux-64 | |
- os: windows-latest | |
label: win-64 | |
name: ${{ matrix.label }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install tinytex | |
shell: bash -l {0} | |
run: quarto install tinytex | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/[email protected] | |
with: | |
manifest-path: pyproject.toml | |
pixi-version: v0.39.0 | |
cache: true | |
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
- run: pixi run tests |