From e335627599e530282c6969e424dc76ca9e56d531 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Wed, 16 Oct 2024 16:39:38 +0200 Subject: [PATCH] UI-tests with ipywidgets 7 --- .github/workflows/ui-tests.yml | 15 +++++++++++++++ pyproject.toml | 10 ++++++++++ 2 files changed, 25 insertions(+) diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index aa27f2344..cd59f076f 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -14,6 +14,7 @@ jobs: matrix: jupyter-server-version: ['1.24.0', '2.14.2'] progressive_rendering: [false, true] + ipywidgets: ['latest', '7'] exclude: - jupyter-server-version: '1.24.0' progressive_rendering: true @@ -25,6 +26,7 @@ jobs: uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 - name: Install dependencies + if: ${{ matrix.ipywidgets == 'latest' }} run: | python -m pip install -r requirements-visual-test.txt python -m pip install jupyterlab_miami_nights --no-deps @@ -36,6 +38,19 @@ jobs: cd ui-tests jlpm install + - name: Install dependencies + if: ${{ matrix.ipywidgets == '7' }} + run: | + python -m pip install -r requirements-visual-test.txt + python -m pip install jupyterlab_miami_nights --no-deps + python -m pip install ".[test7]" + python -m pip install jupyter-server==${{ matrix.jupyter-server-version }} + jlpm + jlpm build + jupyter labextension develop . --overwrite + cd ui-tests + jlpm install + - name: Launch Voila run: | # Mount a volume to overwrite the server configuration diff --git a/pyproject.toml b/pyproject.toml index 474aa1df8..28296d062 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,6 +68,16 @@ test = [ "pytest", "pytest-tornasync", ] +test7 = [ + "ipykernel", + "ipywidgets==7.8.2", + "matplotlib", + "numpy", + "pandas", + "papermill", + "pytest", + "pytest-tornasync", +] docs = [ "myst-parser", "pydata-sphinx-theme",