58
58
lab : ' ${{ matrix.lab }}'
59
59
nodejs : ' ${{ matrix.nodejs }}'
60
60
61
- - name : Cache conda
62
- uses : actions/cache@v3
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
-
70
61
- name : Set up Python and mamba
71
62
uses : conda-incubator/setup-miniconda@v2
72
63
with :
@@ -122,6 +113,10 @@ jobs:
122
113
- name : Check distributions
123
114
run : python scripts/distcheck.py
124
115
116
+ - name : Rename uncached conda packages
117
+ shell : bash
118
+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
119
+
125
120
build :
126
121
name : build
127
122
runs-on : ${{ matrix.os }}-latest
@@ -143,19 +138,11 @@ jobs:
143
138
lab : ' ${{ matrix.lab }}'
144
139
nodejs : ' ${{ matrix.nodejs }}'
145
140
146
- - name : Cache conda
147
- uses : actions/cache@v3
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
-
155
141
- name : Set up Python and mamba
156
142
uses : conda-incubator/setup-miniconda@v2
157
143
with :
158
144
miniforge-variant : Mambaforge
145
+ use-mamba : true
159
146
160
147
- name : Install minimal build deps
161
148
run : mamba install -n test -c conda-forge setuptools wheel 'jupyterlab${{ matrix.lab }}' 'nodejs${{ matrix.nodejs }}'
@@ -214,6 +201,10 @@ jobs:
214
201
name : jupyterlab-lsp dist ${{ github.run_number }}
215
202
path : ./dist
216
203
204
+ - name : Rename uncached conda packages
205
+ shell : bash
206
+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
207
+
217
208
acceptance :
218
209
runs-on : ${{ matrix.os }}-latest
219
210
name : atest ${{ matrix.os }} py${{ matrix.python }} r${{ matrix.r }}
@@ -250,15 +241,6 @@ jobs:
250
241
lab : ' ${{ matrix.lab }}'
251
242
nodejs : ' ${{ matrix.nodejs }}'
252
243
253
- - name : Cache conda
254
- uses : actions/cache@v3
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
-
262
244
- name : Set up Python and mamba
263
245
uses : conda-incubator/setup-miniconda@v2
264
246
with :
@@ -357,6 +339,10 @@ jobs:
357
339
path : ./atest/output
358
340
if : always()
359
341
342
+ - name : Rename uncached conda packages
343
+ shell : bash
344
+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
345
+
360
346
smoke :
361
347
name : smoke ${{ matrix.os }} py${{ matrix.python }}
362
348
runs-on : ${{ matrix.os }}-latest
0 commit comments