File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,38 @@ commands =
43
43
jupytext tests/notebooks/*.py --to ipynb
44
44
pytest {posargs:-v} --driver Firefox
45
45
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
+
46
78
[testenv:coverage]
47
79
# We do coverage in a separate environment that skips the selenium tests but
48
80
# includes the jupytext notebook files, because coverage is incompatible with
You can’t perform that action at this time.
0 commit comments