Skip to content

Commit 6c48f43

Browse files
committed
DevOps: Add tox environment for tests-lab-4
1 parent ae42262 commit 6c48f43

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tox.ini

+32
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,38 @@ commands =
4343
jupytext tests/notebooks/*.py --to ipynb
4444
pytest {posargs:-v} --driver Firefox
4545

46+
[testenv:tests-lab-4]
47+
description =
48+
Tests with jupyter lab version >= 4
49+
setenv =
50+
# this is needed to run selenium on a machine without display to do CI
51+
SELENIUM_FIREFOX_DRIVER_ARGS = {env:SELENIUM_FIREFOX_DRIVER_ARGS:--headless}
52+
JUPYTER_TYPE = lab
53+
# use the jupyter config in the tox environment
54+
# otherwise the users config is used
55+
JUPYTER_CONFIG_DIR={envdir}/etc/jupyter
56+
JUPYTER_DATA_DIR={envdir}/share/jupyter
57+
deps =
58+
pytest<8.0.0
59+
pytest-html<4.0.0,
60+
# selenium juypter notebook tests
61+
jupyterlab>=4.0.0
62+
# fixing selenium version to have backwards-compatibility with pytest-selenium
63+
# see https://github.com/robotframework/SeleniumLibrary/issues/1835#issuecomment-1581426365
64+
selenium==4.9.0
65+
pytest-selenium
66+
jupytext==1.15.0
67+
imageio
68+
# we fix matplotlib for consistent image tests
69+
matplotlib==3.7.2
70+
numpy<2.0.0
71+
scikit-image
72+
ipympl
73+
commands =
74+
# converts the python files to ipython notebooks
75+
jupytext tests/notebooks/*.py --to ipynb
76+
pytest {posargs:-v} --driver Firefox
77+
4678
[testenv:coverage]
4779
# We do coverage in a separate environment that skips the selenium tests but
4880
# includes the jupytext notebook files, because coverage is incompatible with

0 commit comments

Comments
 (0)