@@ -38,25 +38,23 @@ jobs:
38
38
use-only-tar-bz2 : true
39
39
- name : Install dependencies
40
40
run : |
41
- conda activate test_gator
41
+ conda info
42
42
conda install -n test_gator --file requirements_dev.txt
43
43
python setup.py develop --skip-npm
44
- # Check pip dependencies
45
- python -m pip check
44
+ # Check pip dependencies - broken for Python 3.7
45
+ # python -m pip check
46
46
shell : bash -l {0}
47
47
- name : Test the server extension
48
- run : |
49
- conda activate test_gator
50
- python -m pytest -ra mamba_gator
48
+ run : python -m pytest -ra mamba_gator
51
49
shell : bash -l {0}
52
50
53
51
test-backend-mamba :
54
52
name : Test server with Mamba Python ${{ matrix.python-version }}
55
53
runs-on : ubuntu-latest
56
54
strategy :
57
55
matrix :
58
- # Skip 3.7 as it is used for integration tests
59
- python-version : ["3.8 ", "3.9 "]
56
+ # Skip 3.9 as it is used for integration tests
57
+ python-version : ["3.7 ", "3.8 "]
60
58
steps :
61
59
- name : Checkout
62
60
uses : actions/checkout@v2
@@ -83,22 +81,21 @@ jobs:
83
81
use-only-tar-bz2 : true
84
82
- name : Install dependencies
85
83
run : |
86
- conda activate test_gator
84
+ conda info
87
85
mamba install -n test_gator --file requirements_dev.txt
88
86
python setup.py develop --skip-npm
89
- # Check pip dependencies
90
- python -m pip check
87
+ # Check pip dependencies - broken for Python 3.7
88
+ # python -m pip check
91
89
shell : bash -l {0}
92
90
- name : Test the server extension
93
- run : |
94
- conda activate test_gator
95
- python -m pytest -ra mamba_gator
91
+ run : python -m pytest -ra mamba_gator
96
92
shell : bash -l {0}
97
93
98
94
test-all-os :
99
95
name : Test Conda Python 3.7 on ${{ matrix.os }}
100
96
runs-on : ${{ matrix.os }}
101
97
continue-on-error : true
98
+ timeout-minutes : 60
102
99
strategy :
103
100
fail-fast : false
104
101
matrix :
@@ -151,9 +148,9 @@ jobs:
151
148
152
149
- name : Install dependencies
153
150
run : |
154
- conda activate test_gator
151
+ conda info
155
152
conda install -n test_gator --file requirements_dev.txt
156
- conda install -n test_gator jupyterlab=3
153
+ conda install -n test_gator jupyterlab=3 "nbclassic!=0.3.3"
157
154
yarn install
158
155
python -m pip install -e .
159
156
shell : bash -l {0}
@@ -162,7 +159,6 @@ jobs:
162
159
env :
163
160
OS_RUNNER : ${{ matrix.os }}
164
161
run : |
165
- conda activate test_gator
166
162
python -m pytest mamba_gator
167
163
yarn run test
168
164
@@ -172,7 +168,7 @@ jobs:
172
168
shell : bash -l {0}
173
169
174
170
test-integration :
175
- name : All tests on Ubuntu Mamba Python 3.7
171
+ name : All tests on Ubuntu Mamba Python 3.9
176
172
runs-on : ubuntu-latest
177
173
steps :
178
174
- name : Checkout
@@ -184,10 +180,10 @@ jobs:
184
180
CACHE_NUMBER : 0
185
181
with :
186
182
path : ~/conda_pkgs_dir
187
- key : ${{ runner.os }}-mamba-3.7 -${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
183
+ key : ${{ runner.os }}-mamba-3.9 -${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
188
184
restore-keys : |
189
- ${{ runner.os }}-mamba-3.7 -${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
190
- ${{ runner.os }}-mamba-3.7
185
+ ${{ runner.os }}-mamba-3.9 -${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
186
+ ${{ runner.os }}-mamba-3.9
191
187
- name : Get yarn cache directory path
192
188
id : yarn-cache-dir-path
193
189
run : echo "::set-output name=dir::$(yarn cache dir)"
@@ -206,22 +202,22 @@ jobs:
206
202
${{ runner.os }}-yarn-${{ env.CACHE_NUMBER }}
207
203
${{ runner.os }}-yarn-
208
204
209
- - name : Setup Python 3.7
205
+ - name : Setup Python 3.9
210
206
uses : conda-incubator/setup-miniconda@v2
211
207
with :
212
208
activate-environment : test_gator
213
209
auto-update-conda : true
214
210
channels : conda-forge
215
211
mamba-version : " *"
216
- python-version : " 3.7 "
212
+ python-version : " 3.9 "
217
213
show-channel-urls : true
218
214
use-only-tar-bz2 : true
219
215
220
216
- name : Install dependencies
221
217
run : |
222
- conda activate test_gator
218
+ conda info
223
219
mamba install -n test_gator --file requirements_dev.txt
224
- mamba install -n test_gator coveralls jupyterlab=3
220
+ mamba install -n test_gator coveralls jupyterlab=3 "nbclassic!=0.3.3"
225
221
yarn install
226
222
python -m pip install -e .
227
223
# Check pip dependencies
@@ -230,7 +226,6 @@ jobs:
230
226
231
227
- name : Test the extension
232
228
run : |
233
- conda activate test_gator
234
229
# Run linter
235
230
flake8 setup.py mamba_gator
236
231
yarn run eslint:check
0 commit comments