@@ -16,15 +16,17 @@ defaults:
16
16
shell : bash -l {0}
17
17
18
18
env :
19
- # Increase this value to reset all caches
20
- CACHE_EPOCH : 1
19
+ JULIA_NUM_THREADS : 2
20
+ MAMBA_NO_BANNER : 1
21
+ PIP_DISABLE_PIP_VERSION_CHECK : 1
22
+ PYTHONUNBUFFERED : 1
21
23
24
+ ATEST_RETRIES : 3
22
25
JLPM_CMD : jlpm --ignore-optional --prefer-offline --frozen-lockfile
23
26
24
- PYTHONUNBUFFERED : 1
25
- ATEST_RETRIES : 3
26
- PIP_DISABLE_PIP_VERSION_CHECK : 1
27
- MAMBA_NO_BANNER : 1
27
+ # Increase this value to reset all caches
28
+ CACHE_EPOCH : 1
29
+ JULIA_LANGSERVER : 3.2.0
28
30
29
31
jobs :
30
32
lint :
@@ -75,15 +77,17 @@ jobs:
75
77
uses : actions/cache@v2
76
78
with :
77
79
path : ' **/node_modules'
78
- key : ${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-lint-${{ hashFiles('yarn.lock', 'requirements/github-actions.yml') }}
80
+ key : |
81
+ ${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-lint-${{ hashFiles('yarn.lock', 'requirements/github-actions.yml') }}
79
82
80
83
- name : Cache yarn packages
81
84
id : cache-yarn-packages
82
85
if : steps.cache-node-modules.outputs.cache-hit != 'true'
83
86
uses : actions/cache@v2
84
87
with :
85
88
path : .yarn-packages
86
- key : ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
89
+ key : |
90
+ ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
87
91
restore-keys : |
88
92
${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-
89
93
${{ env.CACHE_EPOCH }}-yarn-
@@ -148,15 +152,17 @@ jobs:
148
152
uses : actions/cache@v2
149
153
with :
150
154
path : ' **/node_modules'
151
- key : ${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-build-${{ hashFiles('yarn.lock', 'requirements/github-actions.yml') }}
155
+ key : |
156
+ ${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-build-${{ hashFiles('yarn.lock', 'requirements/github-actions.yml') }}
152
157
153
158
- name : Cache yarn packages
154
159
id : cache-yarn-packages
155
160
if : steps.cache-node-modules.outputs.cache-hit != 'true'
156
161
uses : actions/cache@v2
157
162
with :
158
163
path : .yarn-packages
159
- key : ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
164
+ key : |
165
+ ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
160
166
restore-keys : |
161
167
${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-
162
168
${{ env.CACHE_EPOCH }}-yarn-
@@ -227,11 +233,6 @@ jobs:
227
233
steps :
228
234
- uses : actions/checkout@v2
229
235
230
- - uses : julia-actions/setup-julia@v1
231
-
232
- - name : Install Julia language server
233
- run : julia -e 'using Pkg; Pkg.add("LanguageServer")'
234
-
235
236
- name : Set JupyterLab and Node versions
236
237
uses : cschleiden/replace-tokens@v1
237
238
with :
@@ -263,22 +264,17 @@ jobs:
263
264
run : conda list
264
265
265
266
- name : Cache node_modules
266
- id : cache-node-modules
267
267
uses : actions/cache@v2
268
268
with :
269
269
path : ' **/node_modules'
270
- key : ${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-test-${{ hashFiles('yarn.lock', 'requirements/github-actions.yml') }}
270
+ key : |
271
+ ${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-atest-${{ hashFiles('yarn.lock') }}
271
272
272
- - name : Cache yarn packages
273
- id : cache-yarn-packages
274
- if : steps.cache-node-modules.outputs.cache-hit != 'true'
275
- uses : actions/cache@v2
273
+ - uses : actions/cache@v2
276
274
with :
277
- path : .yarn-packages
278
- key : ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
279
- restore-keys : |
280
- ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-
281
- ${{ env.CACHE_EPOCH }}-yarn-
275
+ path : ~/.julia/artifacts
276
+ key : |
277
+ ${{ env.CACHE_EPOCH }}-julia-test-${{ runner.os }}-${{ env.JULIA_LANGSERVER }}
282
278
283
279
- uses : actions/download-artifact@v2
284
280
with :
@@ -304,10 +300,16 @@ jobs:
304
300
- name : List frontend extensions
305
301
run : jupyter labextension list
306
302
307
- - name : install npm dependencies
303
+ - name : install node-based language servers
308
304
if : steps.cache-node-modules.outputs.cache-hit != 'true'
309
305
run : ${{ env.JLPM_CMD }}
310
306
307
+ - name : Install Julia
308
+ uses : julia-actions/setup-julia@v1
309
+
310
+ - name : Install Julia language server
311
+ run : julia -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name="LanguageServer", version="${{ env.JULIA_LANGSERVER }}"))'
312
+
311
313
- name : Run python tests
312
314
run : python scripts/utest.py
313
315
0 commit comments