19
19
fail-fast : false
20
20
matrix :
21
21
os : [ubuntu-latest]
22
- python_version : ['3.7', '3.8', '3.9', '3.10']
22
+ python_version : ['3.8', '3.10']
23
+ server_version : ['1.18', '2.7.0']
23
24
24
25
steps :
25
26
- uses : actions/checkout@v2
@@ -32,22 +33,24 @@ jobs:
32
33
33
34
- name : Create the conda environment
34
35
shell : bash -l {0}
35
- run : mamba install -q python=${{ matrix.python_version }} pip jupyterlab_pygments==0.1.0 pytest-cov pytest-rerunfailures nodejs yarn=1 flake8 ipywidgets matplotlib xeus-cling "traitlets>=5.0.3,<6"
36
+ run : mamba install -q python=${{ matrix.python_version }} pip jupyterlab_pygments==0.1.0 pytest-cov pytest-rerunfailures nodejs=18 yarn=1 ipywidgets matplotlib xeus-cling "traitlets>=5.0.3,<6" ipykernel jupyter_server=${{ matrix.server_version }}
36
37
37
38
- name : Install dependencies
38
39
shell : bash -l {0}
39
40
run : |
40
41
whereis python
41
42
python --version
42
43
yarn install --network-timeout 100000
43
- python -m pip install ".[test]"
44
+ python -m pip install ".[test,dev ]"
44
45
(cd tests/test_template; pip install .)
45
46
(cd tests/skip_template; pip install .)
46
47
47
48
- name : Run tests
48
49
shell : bash -l {0}
49
50
run : |
50
- VOILA_TEST_XEUS_CLING=1 py.test tests/ --async-test-timeout=240 --reruns 2 --reruns-delay 1
51
+ VOILA_TEST_XEUS_CLING=1 py.test tests/app --async-test-timeout=240 --reruns 2 --reruns-delay 1
52
+ VOILA_TEST_XEUS_CLING=1 py.test tests/server --async-test-timeout=240 --reruns 2 --reruns-delay 1 --trace
53
+ py.test tests/execute_output_test.py
51
54
voila --help # Making sure we can run `voila --help`
52
55
# tests if voila sends a 'heartbeat' to avoid proxies from closing an apparently stale connection
53
56
# Note that wget is the only easily available software that has a read-timeout
71
74
strategy :
72
75
fail-fast : false
73
76
matrix :
74
- os : [macos-10.15 ]
75
- python_version : ['3.7', '3. 8', '3.9', '3.10']
77
+ os : [macos-12 ]
78
+ python_version : ['3.8', '3.9', '3.10']
76
79
77
80
steps :
78
81
- uses : actions/checkout@v2
@@ -85,28 +88,24 @@ jobs:
85
88
86
89
- name : Create the conda environment
87
90
shell : bash -l {0}
88
- run : mamba install -q python=${{ matrix.python_version }} pip jupyterlab_pygments==0.1.0 pytest-cov pytest-rerunfailures nodejs yarn=1 flake8 ipywidgets matplotlib xeus-cling "traitlets>=5.0.3,<6"
91
+ run : mamba install -q python=${{ matrix.python_version }} pip jupyterlab_pygments==0.1.0 pytest-cov pytest-rerunfailures nodejs=18 yarn=1 ipywidgets matplotlib xeus-cling "traitlets>=5.0.3,<6" ipykernel
89
92
90
93
- name : Install dependencies
91
94
shell : bash -l {0}
92
95
run : |
93
96
whereis python
94
97
python --version
95
98
yarn install --network-timeout 100000
96
- python -m pip install ".[test]"
99
+ python -m pip install ".[test, dev ]"
97
100
(cd tests/test_template; pip install .)
98
101
(cd tests/skip_template; pip install .)
99
102
100
103
- name : Run tests
101
104
shell : bash -l {0}
102
105
run : |
103
- py.test tests/ --async-test-timeout=240 --reruns 2 --reruns-delay 1
104
- voila --help # Making sure we can run `voila --help`
105
- # tests if voila sends a 'heartbeat' to avoid proxies from closing an apparently stale connection
106
- # Note that wget is the only easily available software that has a read-timeout
107
- voila tests/notebooks/sleep10seconds.ipynb --port=8878 --VoilaConfiguration.http_keep_alive_timeout=2 &
108
- sleep 2
109
- wget --read-timeout=5 --tries=1 http://localhost:8878
106
+ py.test tests/app --async-test-timeout=240 --reruns 2 --reruns-delay 1
107
+ py.test tests/server --async-test-timeout=240 --reruns 2 --reruns-delay 1 --trace
108
+ py.test tests/execute_output_test.py
110
109
111
110
test-win :
112
111
@@ -116,7 +115,7 @@ jobs:
116
115
fail-fast : false
117
116
matrix :
118
117
os : [windows-latest]
119
- python-version : ['3.7', '3. 8', '3.9', '3.10']
118
+ python-version : ['3.8', '3.9', '3.10']
120
119
steps :
121
120
- uses : actions/checkout@v2
122
121
@@ -127,11 +126,11 @@ jobs:
127
126
128
127
- uses : actions/setup-node@v2
129
128
with :
130
- node-version : ' 16 '
129
+ node-version : ' 18 '
131
130
132
131
- name : Install dependencies
133
132
run : |
134
- python -m pip install jupyterlab_pygments==0.1.0 pytest-cov pytest-rereunfailures flake8 ipywidgets matplotlib traitlets
133
+ python -m pip install jupyterlab_pygments==0.1.0 pytest-cov pytest-rerunfailures ipywidgets matplotlib traitlets ipykernel
135
134
yarn install --network-timeout 100000
136
135
python -m pip install ".[test]"
137
136
cd tests/test_template
@@ -142,4 +141,6 @@ jobs:
142
141
- name : Run test
143
142
run : |
144
143
set VOILA_TEST_DEBUG=1
145
- py.test tests/ --async-test-timeout=240 --reruns 2 --reruns-delay 1
144
+ py.test tests/app --async-test-timeout=240 --reruns 2 --reruns-delay 1
145
+ py.test tests/server --async-test-timeout=240 --reruns 2 --reruns-delay 1 --trace
146
+ py.test tests/execute_output_test.py
0 commit comments