@@ -140,52 +140,26 @@ jobs:
140
140
PYTENSOR_FLAGS : floatX=${{ matrix.floatx }},gcc__cxxflags='-march=native'
141
141
defaults :
142
142
run :
143
- shell : bash -l {0}
143
+ shell : bash -leo pipefail {0}
144
144
steps :
145
145
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
146
- - name : Cache conda
147
- uses : actions/cache@v4
148
- env :
149
- # Increase this value to reset cache if environment-test.yml has not changed
150
- CACHE_NUMBER : 0
146
+ - uses : mamba-org/setup-micromamba@v2
151
147
with :
152
- path : ~/conda_pkgs_dir
153
- key : ${{ runner.os }}-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }}-${{
154
- hashFiles('conda-envs/environment-test.yml') }}
155
- - name : Cache multiple paths
156
- uses : actions/cache@v4
157
- env :
158
- # Increase this value to reset cache if requirements.txt has not changed
159
- CACHE_NUMBER : 0
160
- with :
161
- path : |
162
- ~/.cache/pip
163
- $RUNNER_TOOL_CACHE/Python/*
164
- ~\AppData\Local\pip\Cache
165
- key : ${{ runner.os }}-build-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{
166
- hashFiles('requirements.txt') }}
167
- - uses : conda-incubator/setup-miniconda@v2
168
- with :
169
- miniforge-variant : Mambaforge
170
- miniforge-version : latest
171
- mamba-version : " *"
172
- activate-environment : pymc-test
173
- channel-priority : strict
174
148
environment-file : conda-envs/environment-test.yml
175
- python-version : ${{matrix.python-version}}
176
- use-mamba : true
177
- use-only-tar-bz2 : false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
149
+ create-args : >-
150
+ python=${{matrix.python-version}}
151
+ environment-name : pymc-test
152
+ init-shell : bash
153
+ cache-environment : true
178
154
- name : Install-pymc
179
155
run : |
180
- conda activate pymc-test
181
156
pip install -e .
182
157
# TODO: https://github.com/pymc-devs/pymc/issues/7417
183
158
pip install --pre -U 'polyagamma<1.3.7'
184
159
python --version
185
- conda list
160
+ micromamba list
186
161
- name : Run tests
187
162
run : |
188
- conda activate pymc-test
189
163
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
190
164
- name : Upload coverage to Codecov
191
165
uses : codecov/codecov-action@v4
@@ -216,53 +190,27 @@ jobs:
216
190
PYTENSOR_FLAGS : floatX=${{ matrix.floatx }},gcc__cxxflags='-march=core2'
217
191
defaults :
218
192
run :
219
- shell : cmd
193
+ shell : cmd /C call {0}
220
194
steps :
221
195
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
222
- - name : Cache conda
223
- uses : actions/cache@v4
224
- env :
225
- # Increase this value to reset cache if conda-envs/windows-environment-test.yml has not changed
226
- CACHE_NUMBER : 0
227
- with :
228
- path : ~/conda_pkgs_dir
229
- key : ${{ runner.os }}-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }}-${{
230
- hashFiles('conda-envs/windows-environment-test.yml') }}
231
- - name : Cache multiple paths
232
- uses : actions/cache@v4
233
- env :
234
- # Increase this value to reset cache if requirements.txt has not changed
235
- CACHE_NUMBER : 0
196
+ - uses : mamba-org/setup-micromamba@v2
236
197
with :
237
- path : |
238
- ~/.cache/pip
239
- $RUNNER_TOOL_CACHE/Python/*
240
- ~\AppData\Local\pip\Cache
241
- key : ${{ runner.os }}-build-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{
242
- hashFiles('requirements.txt') }}
243
- - uses : conda-incubator/setup-miniconda@v2
244
- with :
245
- miniforge-variant : Mambaforge
246
- miniforge-version : latest
247
- mamba-version : " *"
248
- activate-environment : pymc-test
249
- channel-priority : strict
250
198
environment-file : conda-envs/windows-environment-test.yml
251
- python-version : ${{matrix.python-version}}
252
- use-mamba : true
253
- use-only-tar-bz2 : false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
199
+ create-args : >-
200
+ python=${{matrix.python-version}}
201
+ environment-name : pymc-test
202
+ init-shell : cmd.exe
203
+ cache-environment : true
254
204
- name : Install-pymc
255
205
run : |
256
- conda activate pymc-test
257
206
pip install -e .
258
207
pip install --pre -U 'polyagamma<1.3.7'
259
208
python --version
260
- conda list
209
+ micromamba list
261
210
- name : Run tests
262
211
# This job uses a cmd shell, therefore the environment variable syntax is different!
263
212
# The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682).
264
213
run : >-
265
- conda activate pymc-test &&
266
214
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 %TEST_SUBSET%
267
215
- name : Upload coverage to Codecov
268
216
uses : codecov/codecov-action@v4
@@ -300,47 +248,22 @@ jobs:
300
248
PYTENSOR_FLAGS : floatX=${{ matrix.floatx }},gcc__cxxflags='-march=native'
301
249
defaults :
302
250
run :
303
- shell : bash -l {0}
251
+ shell : bash -leo pipefail {0}
304
252
steps :
305
253
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
306
- - name : Cache conda
307
- uses : actions/cache@v4
308
- env :
309
- # Increase this value to reset cache if environment-test.yml has not changed
310
- CACHE_NUMBER : 0
311
- with :
312
- path : ~/conda_pkgs_dir
313
- key : ${{ runner.os }}-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }}-${{
314
- hashFiles('conda-envs/environment-test.yml') }}
315
- - name : Cache multiple paths
316
- uses : actions/cache@v4
317
- env :
318
- # Increase this value to reset cache if requirements.txt has not changed
319
- CACHE_NUMBER : 0
254
+ - uses : mamba-org/setup-micromamba@v2
320
255
with :
321
- path : |
322
- ~/.cache/pip
323
- $RUNNER_TOOL_CACHE/Python/*
324
- ~\AppData\Local\pip\Cache
325
- key : ${{ runner.os }}-build-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{
326
- hashFiles('requirements.txt') }}
327
- - uses : conda-incubator/setup-miniconda@v2
328
- with :
329
- miniforge-variant : Mambaforge
330
- miniforge-version : latest
331
- mamba-version : " *"
332
- activate-environment : pymc-test
333
- channel-priority : strict
334
256
environment-file : conda-envs/environment-test.yml
335
- python-version : ${{matrix.python-version}}
336
- use-mamba : true
337
- use-only-tar-bz2 : false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
257
+ create-args : >-
258
+ python=${{matrix.python-version}}
259
+ environment-name : pymc-test
260
+ init-shell : bash
261
+ cache-environment : true
338
262
- name : Install pymc
339
263
run : |
340
- conda activate pymc-test
341
264
pip install -e .
342
265
python --version
343
- conda list
266
+ micromamba list
344
267
- name : Run tests
345
268
run : |
346
269
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
@@ -369,47 +292,22 @@ jobs:
369
292
PYTENSOR_FLAGS : floatX=${{ matrix.floatx }},gcc__cxxflags='-march=native'
370
293
defaults :
371
294
run :
372
- shell : bash -l {0}
295
+ shell : bash -leo pipefail {0}
373
296
steps :
374
297
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
375
- - name : Cache conda
376
- uses : actions/cache@v4
377
- env :
378
- # Increase this value to reset cache if environment-jax.yml has not changed
379
- CACHE_NUMBER : 0
380
- with :
381
- path : ~/conda_pkgs_dir
382
- key : ${{ runner.os }}-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }}-${{
383
- hashFiles('conda-envs/environment-jax.yml') }}
384
- - name : Cache multiple paths
385
- uses : actions/cache@v4
386
- env :
387
- # Increase this value to reset cache if requirements.txt has not changed
388
- CACHE_NUMBER : 0
389
- with :
390
- path : |
391
- ~/.cache/pip
392
- $RUNNER_TOOL_CACHE/Python/*
393
- ~\AppData\Local\pip\Cache
394
- key : ${{ runner.os }}-build-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{
395
- hashFiles('requirements.txt') }}
396
- - uses : conda-incubator/setup-miniconda@v2
298
+ - uses : mamba-org/setup-micromamba@v2
397
299
with :
398
- miniforge-variant : Mambaforge
399
- miniforge-version : latest
400
- mamba-version : " *"
401
- activate-environment : pymc-test
402
- channel-priority : strict
403
300
environment-file : conda-envs/environment-jax.yml
404
- python-version : ${{matrix.python-version}}
405
- use-mamba : true
406
- use-only-tar-bz2 : false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
301
+ create-args : >-
302
+ python=${{matrix.python-version}}
303
+ environment-name : pymc-test
304
+ init-shell : bash
305
+ cache-environment : true
407
306
- name : Install pymc
408
307
run : |
409
- conda activate pymc-test
410
308
pip install -e .
411
309
python --version
412
- conda list
310
+ micromamba list
413
311
- name : Run tests
414
312
run : |
415
313
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
@@ -438,53 +336,27 @@ jobs:
438
336
PYTENSOR_FLAGS : floatX=${{ matrix.floatx }},gcc__cxxflags='-march=core2'
439
337
defaults :
440
338
run :
441
- shell : cmd
339
+ shell : cmd /C call {0}
442
340
steps :
443
341
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
444
- - name : Cache conda
445
- uses : actions/cache@v4
446
- env :
447
- # Increase this value to reset cache if conda-envs/windows-environment-test.yml has not changed
448
- CACHE_NUMBER : 0
449
- with :
450
- path : ~/conda_pkgs_dir
451
- key : ${{ runner.os }}-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }}-${{
452
- hashFiles('conda-envs/windows-environment-test.yml') }}
453
- - name : Cache multiple paths
454
- uses : actions/cache@v4
455
- env :
456
- # Increase this value to reset cache if requirements.txt has not changed
457
- CACHE_NUMBER : 0
458
- with :
459
- path : |
460
- ~/.cache/pip
461
- $RUNNER_TOOL_CACHE/Python/*
462
- ~\AppData\Local\pip\Cache
463
- key : ${{ runner.os }}-build-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{
464
- hashFiles('requirements.txt') }}
465
- - uses : conda-incubator/setup-miniconda@v2
342
+ - uses : mamba-org/setup-micromamba@v2
466
343
with :
467
- miniforge-variant : Mambaforge
468
- miniforge-version : latest
469
- mamba-version : " *"
470
- activate-environment : pymc-test
471
- channel-priority : strict
472
344
environment-file : conda-envs/windows-environment-test.yml
473
- python-version : ${{matrix.python-version}}
474
- use-mamba : true
475
- use-only-tar-bz2 : false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
345
+ create-args : >-
346
+ python=${{matrix.python-version}}
347
+ environment-name : pymc-test
348
+ init-shell : cmd.exe
349
+ cache-environment : true
476
350
- name : Install-pymc
477
351
run : |
478
- conda activate pymc-test
479
352
pip install -e .
480
353
pip install --pre -U 'polyagamma<1.3.7'
481
354
python --version
482
- conda list
355
+ micromamba list
483
356
- name : Run tests
484
357
# This job uses a cmd shell, therefore the environment variable syntax is different!
485
358
# The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682).
486
359
run : >-
487
- conda activate pymc-test &&
488
360
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 %TEST_SUBSET%
489
361
- name : Upload coverage to Codecov
490
362
uses : codecov/codecov-action@v4
0 commit comments