Skip to content

tests

tests #196

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.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "jupyterlab~=4.0" "wheel"
- name: Build the extension
run: |
python -m pip install ".[tests]"
- 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