Skip to content

Commit

Permalink
UI-tests with ipywidgets 7
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Oct 16, 2024
1 parent fa26d3c commit e335627
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e335627

Please sign in to comment.