try pixi #66
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: 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: | |
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 | |
- run: pixi run build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: jlpl-${{ github.run_number }}-dist | |
path: ./dist | |
lint: | |
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: lint | |
- run: pixi run lint | |
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 |