Skip to content

Commit ba65e1f

Browse files
committed
UI tests for ipywidgets 7
1 parent c13f269 commit ba65e1f

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/ui-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
matrix:
1111
python-version: [3.8]
1212
node-version: [18.x]
13+
ipywidgets-version: [8, 7]
1314
fail-fast: false
1415

1516
steps:
@@ -18,9 +19,20 @@ jobs:
1819
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
1920

2021
- name: Install dependencies
22+
if: ${{ matrix.ipywidgets == 8 }}
2123
run: |
2224
python -m pip install -r requirements-visual-test.txt
2325
python -m pip install ".[test]"
26+
27+
- name: Install dependencies
28+
if: ${{ matrix.ipywidgets == 7 }}
29+
run: |
30+
python -m pip install -r requirements-visual-test.txt
31+
python -m pip install ".[test7]"
32+
33+
34+
- name: Build
35+
run: |
2436
jlpm
2537
jlpm build
2638
jupyter labextension develop . --overwrite

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@ test = [
6969
"pytest",
7070
"pytest-tornasync",
7171
]
72+
test7 = [
73+
"notebook==6",
74+
"ipywidgets==7.8.2",
75+
"matplotlib",
76+
"mock",
77+
"numpy",
78+
"pandas",
79+
"papermill",
80+
"pytest",
81+
"pytest-tornasync",
82+
]
7283

7384
[project.scripts]
7485
voila = "voila.app:main"

0 commit comments

Comments
 (0)