Skip to content

try pixi

try pixi #63

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: ["*"]
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
PYTHONUNBUFFERED: "1"
PIP_DISABLE_PIP_VERSION_CHECK: "1"
JUPYTERLITE_NO_JUPYTER_SERVER: 1
JUPYTERLITE_NO_JUPYTERLAB_SERVER: 1
JLPL_TIMEOUT: 500
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: v0.19.1
cache: true
environments: >-
build
lint
- run: |-
pixi run lint || echo 'TODO: fix lint'
- run: pixi run build
- uses: actions/upload-artifact@v4
with:
name: jlpl-${{ github.run_number }}-dist
path: ./dist
test:
name: ${{ matrix.test-env }} (${{ matrix.os }} ${{ matrix.browser }})
needs: [build]
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: ["ubuntu", "macos", "windows"]
test-env: ["test", "test-oldest"]
include:
- test-env: test-oldest
browser: chrome
- test-env: test-oldest
os: ubuntu
browser: firefox
env:
JLPL_BROWSER: ${{ matrix.browser }}
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: v0.19.1
cache: true
environments: ${{ matrix.test-env }}
- uses: actions/download-artifact@v4
with:
name: jlpl-${{ github.run_number }}-dist
path: ./dist
- run: pixi run --environment ${{ matrix.test-env }} test-core
- run: pixi run --environment ${{ matrix.test-env }} test
- if: always()
uses: actions/upload-artifact@v4
with:
name: |-
jlpl-${{ github.run_number }}-${{ matrix.test-env }}-${{ matrix.os }}
path: |
./build/reports
./contrib/*/build/reports
docs:
name: docs
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: v0.19.1
cache: true
environments: >-
build
docs
- uses: actions/download-artifact@v4
with:
name: jlpl-${{ github.run_number }}-dist
path: ./dist
- run: pixi run docs-lite
- run: pixi run docs-sphinx
- uses: actions/upload-artifact@v4
with:
name: |-
jlpl-docs-${{ github.run_number }}
path: ./build/reports