5858 lab : ' ${{ matrix.lab }}'
5959 nodejs : ' ${{ matrix.nodejs }}'
6060
61- - name : Cache conda
62- uses : actions/cache@v2
63- with :
64- path : ~/conda_pkgs_dir
65- key : |
66- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-lint-${{ hashFiles('requirements/github-actions.yml', 'requirements/lint.yml') }}
67- restore-keys : |
68- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-lint-
69-
7061 - name : Set up Python and mamba
7162 uses : conda-incubator/setup-miniconda@v2
7263 with :
8273
8374 - name : Cache node_modules
8475 id : cache-node-modules
85- uses : actions/cache@v2
76+ uses : actions/cache@v3
8677 with :
8778 path : ' **/node_modules'
8879 key : |
9182 - name : Cache yarn packages
9283 id : cache-yarn-packages
9384 if : steps.cache-node-modules.outputs.cache-hit != 'true'
94- uses : actions/cache@v2
85+ uses : actions/cache@v3
9586 with :
9687 path : .yarn-packages
9788 key : |
@@ -122,6 +113,10 @@ jobs:
122113 - name : Check distributions
123114 run : python scripts/distcheck.py
124115
116+ - name : Rename uncached conda packages
117+ shell : bash
118+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
119+
125120 build :
126121 name : build
127122 runs-on : ${{ matrix.os }}-latest
@@ -132,7 +127,7 @@ jobs:
132127 lab : ['>=3.1.0,<4.0.0a0']
133128 r : ['>=4']
134129 steps :
135- - uses : actions/checkout@v2
130+ - uses : actions/checkout@v3
136131
137132 - uses : cschleiden/replace-tokens@v1
138133 with :
@@ -143,26 +138,18 @@ jobs:
143138 lab : ' ${{ matrix.lab }}'
144139 nodejs : ' ${{ matrix.nodejs }}'
145140
146- - name : Cache conda
147- uses : actions/cache@v2
148- with :
149- path : ~/conda_pkgs_dir
150- key : |
151- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-build-${{ hashFiles('requirements/github-actions.yml') }}
152- restore-keys : |
153- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-build-
154-
155141 - name : Set up Python and mamba
156142 uses : conda-incubator/setup-miniconda@v2
157143 with :
158144 miniforge-variant : Mambaforge
145+ use-mamba : true
159146
160147 - name : Install minimal build deps
161148 run : mamba install -n test -c conda-forge setuptools wheel 'jupyterlab${{ matrix.lab }}' 'nodejs${{ matrix.nodejs }}'
162149
163150 - name : Cache node_modules
164151 id : cache-node-modules
165- uses : actions/cache@v2
152+ uses : actions/cache@v3
166153 with :
167154 path : ' **/node_modules'
168155 key : |
@@ -171,7 +158,7 @@ jobs:
171158 - name : Cache yarn packages
172159 id : cache-yarn-packages
173160 if : steps.cache-node-modules.outputs.cache-hit != 'true'
174- uses : actions/cache@v2
161+ uses : actions/cache@v3
175162 with :
176163 path : .yarn-packages
177164 key : |
@@ -214,6 +201,10 @@ jobs:
214201 name : jupyterlab-lsp dist ${{ github.run_number }}
215202 path : ./dist
216203
204+ - name : Rename uncached conda packages
205+ shell : bash
206+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
207+
217208 acceptance :
218209 runs-on : ${{ matrix.os }}-latest
219210 name : atest ${{ matrix.os }} py${{ matrix.python }} r${{ matrix.r }}
@@ -250,15 +241,6 @@ jobs:
250241 lab : ' ${{ matrix.lab }}'
251242 nodejs : ' ${{ matrix.nodejs }}'
252243
253- - name : Cache conda
254- uses : actions/cache@v2
255- with :
256- path : ~/conda_pkgs_dir
257- key : |
258- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-${{ matrix.python }}-atest-${{ hashFiles('requirements/github-actions.yml') }}
259- restore-keys : |
260- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-${{ matrix.python }}-atest-
261-
262244 - name : Set up Python and mamba
263245 uses : conda-incubator/setup-miniconda@v2
264246 with :
@@ -272,7 +254,7 @@ jobs:
272254
273255 - name : Cache node_modules
274256 id : cache-node-modules
275- uses : actions/cache@v2
257+ uses : actions/cache@v3
276258 with :
277259 path : ' **/node_modules'
278260 key : |
@@ -281,7 +263,7 @@ jobs:
281263 - name : Cache yarn packages
282264 id : cache-yarn-packages
283265 if : steps.cache-node-modules.outputs.cache-hit != 'true'
284- uses : actions/cache@v2
266+ uses : actions/cache@v3
285267 with :
286268 path : .yarn-packages
287269 key : |
@@ -290,7 +272,7 @@ jobs:
290272 ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-
291273 ${{ env.CACHE_EPOCH }}-yarn-
292274
293- - uses : actions/cache@v2
275+ - uses : actions/cache@v3
294276 with :
295277 path : ~/.julia/artifacts
296278 key : |
@@ -351,12 +333,16 @@ jobs:
351333 shell : bash
352334
353335 - name : Publish browser test output
354- uses : actions/upload-artifact@v2
336+ uses : actions/upload-artifact@v3
355337 with :
356338 name : ${{ job.status }} Robot ${{ matrix.os }} Python ${{ matrix.python }} ${{ github.run_number }}
357339 path : ./atest/output
358340 if : always()
359341
342+ - name : Rename uncached conda packages
343+ shell : bash
344+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
345+
360346 smoke :
361347 name : smoke ${{ matrix.os }} py${{ matrix.python }}
362348 runs-on : ${{ matrix.os }}-latest
0 commit comments