Skip to content

Commit

Permalink
UI tests for ipywidgets 7
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jul 17, 2024
1 parent c13f269 commit ba65e1f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
matrix:
python-version: [3.8]
node-version: [18.x]
ipywidgets-version: [8, 7]
fail-fast: false

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

- name: Install dependencies
if: ${{ matrix.ipywidgets == 8 }}
run: |
python -m pip install -r requirements-visual-test.txt
python -m pip install ".[test]"
- name: Install dependencies
if: ${{ matrix.ipywidgets == 7 }}
run: |
python -m pip install -r requirements-visual-test.txt
python -m pip install ".[test7]"
- name: Build
run: |
jlpm
jlpm build
jupyter labextension develop . --overwrite
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ test = [
"pytest",
"pytest-tornasync",
]
test7 = [
"notebook==6",
"ipywidgets==7.8.2",
"matplotlib",
"mock",
"numpy",
"pandas",
"papermill",
"pytest",
"pytest-tornasync",
]

[project.scripts]
voila = "voila.app:main"
Expand Down

0 comments on commit ba65e1f

Please sign in to comment.