Skip to content

tests

tests #115

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
schedule:
- cron: '0 7 * * SUN'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "jupyterlab~=3.0" "jupyter_packaging~=0.7.9" "wheel"
- name: Build the extension
run: |
jlpm
jlpm run eslint:check
python -m pip install .[tests] --no-build-isolation
- name: Check extension
run: |
jupyter labextension list 2>&1 | grep -ie "jupyterlab_pyviz.*OK"
python -m jupyterlab.browser_check
- name: Run tests
run: |
python -m pytest pyviz_comms