Skip to content

Support JupyterLab 4, Notebook 7 #94

Support JupyterLab 4, Notebook 7

Support JupyterLab 4, Notebook 7 #94

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
PYTHONIOENCODING: utf-8
PYTHONUNBUFFERED: 1
MAMBA_NO_BANNER: 1
# ours
CACHE_EPOCH: 2
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install (conda)
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
environment-file: .github/locks/lock_linux-64.conda.lock
use-mamba: true
- name: preflight
run: doit lock:preflight
- name: setup (python)
run: doit lock:install:build_linux-64_lab4.0
- name: cache (node)
uses: actions/cache@v3
id: cache-node-modules
with:
path: |-
**/node_modules
build/.cache/yarn
key: |
${{ env.CACHE_EPOCH }}-ubuntu-node-modules-${{ hashFiles('yarn.lock') }}
- name: setup (js)
run: doit js-root:setup
- name: build
run: doit *:build:* || doit list
- name: build (retry)
run: doit *:build:*
- name: dist
run: doit *:dist:* || doit *:dist:*
- name: upload (dist)
uses: actions/upload-artifact@v3
with:
name: jupyterlab-fonts-${{ github.run_number }}-dist
path: ./dist
- name: upload (preflight)
uses: actions/upload-artifact@v3
with:
name: jupyterlab-fonts-${{ github.run_number }}-lock-preflight
path: ./build/locks
lint:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install (conda)
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
environment-file: .github/locks/lock_linux-64.conda.lock
use-mamba: true
- name: download (preflight)
uses: actions/download-artifact@v3
with:
name: jupyterlab-fonts-${{ github.run_number }}-lock-preflight
path: ./build/locks
- name: setup (python)
run: doit lock:install:build_linux-64_lab4.0
- name: cache (node)
uses: actions/cache@v3
id: cache-node-modules
with:
path: |-
**/node_modules
build/.cache/yarn
key: |
${{ env.CACHE_EPOCH }}-ubuntu-node-modules-${{ hashFiles('yarn.lock') }}
- name: setup (js)
run: doit js-root:setup
- name: lint
run: doit *:lint:*
test:
needs: [build]
name: test ${{ matrix.os }} ${{ matrix.lab-version }}
runs-on: ${{ matrix.os }}-latest
env:
TESTING_IN_CI: '1'
JLF_LAB: ${{ matrix.lab-version }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu', 'macos', 'windows']
lab-version: ['lab3.6', 'lab4.0']
include:
- os: ubuntu
subdir: linux-64
- os: macos
subdir: osx-64
- os: windows
subdir: win-64
steps:
- name: configure line endings
run: git config --global core.autocrlf false
- name: checkout
uses: actions/checkout@v3
- name: install (conda)
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
environment-file: .github/locks/lock_${{ matrix.subdir }}.conda.lock
use-mamba: true
- name: download (preflight)
uses: actions/download-artifact@v3
with:
name: jupyterlab-fonts-${{ github.run_number }}-lock-preflight
path: ./build/locks
- name: download (dist)
uses: actions/download-artifact@v3
with:
name: jupyterlab-fonts-${{ github.run_number }}-dist
path: ./dist
- name: test (pytest)
run: doit dt:test:pytest || doit list
- name: test (pytest, retry)
run: doit dt:test:pytest
- name: test (robot)
run: doit dt:test:robot || doit list
- name: test (robot, retry)
run: doit dt:test:robot
- name: upload (reports)
if: always()
uses: actions/upload-artifact@v3
with:
name: |
jupyterlab-fonts-${{ github.run_number }}-reports-${{ runner.os }}-f${{ matrix.lab-version }}
path: ./build/reports