21
21
uses : actions/cache@v2
22
22
env :
23
23
# Increase this value to reset cache
24
- CACHE_NUMBER : 1
24
+ CACHE_NUMBER : 2
25
25
with :
26
26
path : ~/conda_pkgs_dir
27
27
key : ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
37
37
id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
38
38
env :
39
39
# Increase this value to reset cache
40
- CACHE_NUMBER : 2
40
+ CACHE_NUMBER : 3
41
41
with :
42
42
path : |
43
43
${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -61,26 +61,22 @@ jobs:
61
61
run : |
62
62
conda activate test_jupyter_conda
63
63
conda install -n test_jupyter_conda --file requirements_dev.txt
64
- conda install -n test_jupyter_conda coveralls jupyterlab~=2.0
65
- npm install
64
+ conda install -n test_jupyter_conda coveralls jupyterlab=2
65
+ yarn install
66
66
npm install -g casperjs
67
67
pip install .
68
- cd labextension
69
- jlpm install
70
- jupyter labextension install .
71
- cd ..
68
+ jupyter labextension link packages/common/ packages/labextension/
72
69
shell : bash -l {0}
73
70
74
71
- name : Test the extension
75
72
run : |
76
73
conda activate test_jupyter_conda
77
74
flake8 setup.py jupyter_conda
78
75
coverage run -m pytest jupyter_conda
79
- coverage report
80
- cd labextension
81
- npm run eslint:check
82
- npm run test
83
- cd ..
76
+ coverage report
77
+ yarn run eslint:check
78
+ yarn run test
79
+
84
80
jupyter serverextension list 1>serverextensions 2>&1
85
81
cat serverextensions | grep "jupyter_conda.*OK"
86
82
jupyter labextension list 1>labextensions 2>&1
@@ -100,10 +96,10 @@ jobs:
100
96
run : |
101
97
conda activate test_jupyter_conda
102
98
gem install coveralls-lcov
103
- cd labextension
104
- coveralls-lcov -v -n coverage/lcov.info > jscoverage.json
105
- cd ..
106
- python -m coveralls --merge=labextension/ jscoverage.json
99
+ cd packages/common/
100
+ coveralls-lcov -v -n coverage/lcov.info > ../../common- jscoverage.json
101
+ cd ../../
102
+ python -m coveralls --merge=common- jscoverage.json
107
103
shell : bash -l {0}
108
104
109
105
coveralls :
@@ -135,7 +131,7 @@ jobs:
135
131
uses : actions/cache@v2
136
132
env :
137
133
# Increase this value to reset cache
138
- CACHE_NUMBER : 1
134
+ CACHE_NUMBER : 2
139
135
with :
140
136
path : ~/conda_pkgs_dir
141
137
key : ${{ matrix.os }}-conda-3.7-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
@@ -151,7 +147,7 @@ jobs:
151
147
id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
152
148
env :
153
149
# Increase this value to reset cache
154
- CACHE_NUMBER : 1
150
+ CACHE_NUMBER : 2
155
151
with :
156
152
path : |
157
153
${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -175,14 +171,13 @@ jobs:
175
171
run : |
176
172
conda activate test_jupyter_conda
177
173
conda install -n test_jupyter_conda --file requirements_dev.txt
178
- conda install -n test_jupyter_conda coveralls jupyterlab~=2.0
179
- npm install
174
+ conda install -n test_jupyter_conda coveralls jupyterlab=2
175
+ yarn install
180
176
npm install -g casperjs@^1.1.1 phantomjs-prebuilt@^2.1.7
181
177
pip install .
182
- cd labextension
183
- jlpm install
184
- jupyter labextension install .
185
- cd ..
178
+
179
+ yarn install
180
+ jupyter labextension link packages/common/ packages/labextension/
186
181
shell : bash -l {0}
187
182
188
183
- name : Test the extension
@@ -191,12 +186,11 @@ jobs:
191
186
run : |
192
187
conda activate test_jupyter_conda
193
188
flake8 setup.py jupyter_conda
194
- coverage run -m pytest jupyter_conda
195
- coverage report
196
- cd labextension
197
- npm run eslint:check
198
- npm run test
199
- cd ..
189
+ coverage run -m pytest jupyter_conda
190
+ coverage report
191
+ yarn run eslint:check
192
+ yarn run test
193
+
200
194
jupyter serverextension list
201
195
jupyter labextension list
202
196
if [ "${OS_RUNNER}" != "windows-latest" ]; then python -m jupyterlab.browser_check; fi
@@ -239,7 +233,7 @@ jobs:
239
233
run : |
240
234
conda activate test_jupyter_conda
241
235
mamba install -n test_jupyter_conda --file requirements_dev.txt
242
- npm install
236
+ yarn install
243
237
npm install -g casperjs
244
238
pip install .
245
239
shell : bash -l {0}
0 commit comments