34
34
matrix :
35
35
os : [ubuntu-20.04]
36
36
floatx : [float64]
37
+ python-version : ["3.7"]
37
38
test-subset :
38
39
- |
39
40
pymc/tests/test_util.py
@@ -88,12 +89,12 @@ jobs:
88
89
- name : Cache conda
89
90
uses : actions/cache@v3
90
91
env :
91
- # Increase this value to reset cache if environment-test-py37 .yml has not changed
92
+ # Increase this value to reset cache if environment-test.yml has not changed
92
93
CACHE_NUMBER : 0
93
94
with :
94
95
path : ~/conda_pkgs_dir
95
- key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
96
- hashFiles('conda-envs/environment-test-py37 .yml') }}
96
+ key : ${{ runner.os }}-py${{matrix.python-version}}- conda-${{ env.CACHE_NUMBER }}-${{
97
+ hashFiles('conda-envs/environment-test.yml') }}
97
98
- name : Cache multiple paths
98
99
uses : actions/cache@v3
99
100
env :
@@ -111,20 +112,21 @@ jobs:
111
112
miniforge-variant : Mambaforge
112
113
miniforge-version : latest
113
114
mamba-version : " *"
114
- activate-environment : pymc-test-py37
115
+ activate-environment : pymc-test
115
116
channel-priority : strict
116
- environment-file : conda-envs/environment-test-py37.yml
117
+ environment-file : conda-envs/environment-test.yml
118
+ python-version : ${{matrix.python-version}}
117
119
use-mamba : true
118
120
use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
119
121
- name : Install-pymc
120
122
run : |
121
- conda activate pymc-test-py37
123
+ conda activate pymc-test
122
124
pip install -e .
123
125
pip install --pre -U polyagamma
124
126
python --version
125
127
- name : Run tests
126
128
run : |
127
- conda activate pymc-test-py37
129
+ conda activate pymc-test
128
130
python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
129
131
- name : Upload coverage to Codecov
130
132
uses : codecov/codecov-action@v2
@@ -137,6 +139,7 @@ jobs:
137
139
matrix :
138
140
os : [windows-latest]
139
141
floatx : [float64]
142
+ python-version : ["3.8"]
140
143
test-subset :
141
144
- pymc/tests/test_variational_inference.py pymc/tests/test_initial_point.py
142
145
- pymc/tests/test_pickling.py pymc/tests/test_profile.py pymc/tests/test_step.py
@@ -156,12 +159,12 @@ jobs:
156
159
- name : Cache conda
157
160
uses : actions/cache@v3
158
161
env :
159
- # Increase this value to reset cache if conda-envs/environment-test-py38 .yml has not changed
162
+ # Increase this value to reset cache if conda-envs/windows- environment-test.yml has not changed
160
163
CACHE_NUMBER : 0
161
164
with :
162
165
path : ~/conda_pkgs_dir
163
- key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
164
- hashFiles('conda-envs/windows-environment-test-py38 .yml') }}
166
+ key : ${{ runner.os }}-py${{matrix.python-version}}- conda-${{ env.CACHE_NUMBER }}-${{
167
+ hashFiles('conda-envs/windows-environment-test.yml') }}
165
168
- name : Cache multiple paths
166
169
uses : actions/cache@v3
167
170
env :
@@ -179,22 +182,23 @@ jobs:
179
182
miniforge-variant : Mambaforge
180
183
miniforge-version : latest
181
184
mamba-version : " *"
182
- activate-environment : pymc-test-py38
185
+ activate-environment : pymc-test
183
186
channel-priority : strict
184
- environment-file : conda-envs/windows-environment-test-py38.yml
187
+ environment-file : conda-envs/windows-environment-test.yml
188
+ python-version : ${{matrix.python-version}}
185
189
use-mamba : true
186
190
use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
187
191
- name : Install-pymc
188
192
run : |
189
- conda activate pymc-test-py38
193
+ conda activate pymc-test
190
194
pip install -e .
191
195
pip install --pre -U polyagamma
192
196
python --version
193
197
- name : Run tests
194
198
# This job uses a cmd shell, therefore the environment variable syntax is different!
195
199
# The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682).
196
200
run : >-
197
- conda activate pymc-test-py38 &&
201
+ conda activate pymc-test &&
198
202
python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET%
199
203
- name : Upload coverage to Codecov
200
204
uses : codecov/codecov-action@v2
@@ -207,6 +211,7 @@ jobs:
207
211
matrix :
208
212
os : [macos-latest]
209
213
floatx : [float64]
214
+ python-version : ["3.9"]
210
215
test-subset :
211
216
- |
212
217
pymc/tests/test_parallel_sampling.py
@@ -232,12 +237,12 @@ jobs:
232
237
- name : Cache conda
233
238
uses : actions/cache@v3
234
239
env :
235
- # Increase this value to reset cache if environment-test-py39 .yml has not changed
240
+ # Increase this value to reset cache if environment-test.yml has not changed
236
241
CACHE_NUMBER : 0
237
242
with :
238
243
path : ~/conda_pkgs_dir
239
- key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
240
- hashFiles('conda-envs/environment-test-py39 .yml') }}
244
+ key : ${{ runner.os }}-py${{matrix.python-version}}- conda-${{ env.CACHE_NUMBER }}-${{
245
+ hashFiles('conda-envs/environment-test.yml') }}
241
246
- name : Cache multiple paths
242
247
uses : actions/cache@v3
243
248
env :
@@ -255,14 +260,15 @@ jobs:
255
260
miniforge-variant : Mambaforge
256
261
miniforge-version : latest
257
262
mamba-version : " *"
258
- activate-environment : pymc-test-py39
263
+ activate-environment : pymc-test
259
264
channel-priority : strict
260
- environment-file : conda-envs/environment-test-py39.yml
265
+ environment-file : conda-envs/environment-test.yml
266
+ python-version : ${{matrix.python-version}}
261
267
use-mamba : true
262
268
use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
263
269
- name : Install pymc
264
270
run : |
265
- conda activate pymc-test-py39
271
+ conda activate pymc-test
266
272
pip install -e .
267
273
python --version
268
274
- name : Run tests
@@ -279,6 +285,7 @@ jobs:
279
285
matrix :
280
286
os : [ubuntu-20.04]
281
287
floatx : [float64]
288
+ python-version : ["3.9"]
282
289
test-subset :
283
290
- pymc/tests/test_sampling_jax.py
284
291
fail-fast : false
@@ -294,12 +301,12 @@ jobs:
294
301
- name : Cache conda
295
302
uses : actions/cache@v3
296
303
env :
297
- # Increase this value to reset cache if environment-test-py39 .yml has not changed
304
+ # Increase this value to reset cache if environment-test.yml has not changed
298
305
CACHE_NUMBER : 0
299
306
with :
300
307
path : ~/conda_pkgs_dir
301
- key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
302
- hashFiles('conda-envs/environment-test-py39 .yml') }}
308
+ key : ${{ runner.os }}-py${{matrix.python-version}}- conda-${{ env.CACHE_NUMBER }}-${{
309
+ hashFiles('conda-envs/environment-test.yml') }}
303
310
- name : Cache multiple paths
304
311
uses : actions/cache@v3
305
312
env :
@@ -317,19 +324,20 @@ jobs:
317
324
miniforge-variant : Mambaforge
318
325
miniforge-version : latest
319
326
mamba-version : " *"
320
- activate-environment : pymc-test-py39
327
+ activate-environment : pymc-test
321
328
channel-priority : strict
322
- environment-file : conda-envs/environment-test-py39.yml
329
+ environment-file : conda-envs/environment-test.yml
330
+ python-version : ${{matrix.python-version}}
323
331
use-mamba : true
324
332
use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
325
333
- name : Install pymc
326
334
run : |
327
- conda activate pymc-test-py39
335
+ conda activate pymc-test
328
336
pip install -e .
329
337
python --version
330
338
- name : Install jax specific dependencies
331
339
run : |
332
- conda activate pymc-test-py39
340
+ conda activate pymc-test
333
341
pip install "numpyro>=0.8.0"
334
342
pip install git+https://github.com/blackjax-devs/[email protected]
335
343
- name : Run tests
@@ -346,6 +354,7 @@ jobs:
346
354
matrix :
347
355
os : [windows-latest]
348
356
floatx : [float32]
357
+ python-version : ["3.8"]
349
358
test-subset :
350
359
- pymc/tests/test_sampling.py pymc/tests/test_ode.py
351
360
fail-fast : false
@@ -361,12 +370,12 @@ jobs:
361
370
- name : Cache conda
362
371
uses : actions/cache@v3
363
372
env :
364
- # Increase this value to reset cache if conda-envs/environment-test-py38 .yml has not changed
373
+ # Increase this value to reset cache if conda-envs/windows- environment-test.yml has not changed
365
374
CACHE_NUMBER : 0
366
375
with :
367
376
path : ~/conda_pkgs_dir
368
- key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
369
- hashFiles('conda-envs/windows-environment-test-py38 .yml') }}
377
+ key : ${{ runner.os }}-py${{matrix.python-version}}- conda-${{ env.CACHE_NUMBER }}-${{
378
+ hashFiles('conda-envs/windows-environment-test.yml') }}
370
379
- name : Cache multiple paths
371
380
uses : actions/cache@v3
372
381
env :
@@ -384,22 +393,23 @@ jobs:
384
393
miniforge-variant : Mambaforge
385
394
miniforge-version : latest
386
395
mamba-version : " *"
387
- activate-environment : pymc-test-py38
396
+ activate-environment : pymc-test
388
397
channel-priority : strict
389
- environment-file : conda-envs/windows-environment-test-py38.yml
398
+ environment-file : conda-envs/windows-environment-test.yml
399
+ python-verision : ${{matrix.python-version}}
390
400
use-mamba : true
391
401
use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
392
402
- name : Install-pymc
393
403
run : |
394
- conda activate pymc-test-py38
404
+ conda activate pymc-test
395
405
pip install -e .
396
406
pip install --pre -U polyagamma
397
407
python --version
398
408
- name : Run tests
399
409
# This job uses a cmd shell, therefore the environment variable syntax is different!
400
410
# The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682).
401
411
run : >-
402
- conda activate pymc-test-py38 &&
412
+ conda activate pymc-test &&
403
413
python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET%
404
414
- name : Upload coverage to Codecov
405
415
uses : codecov/codecov-action@v2
0 commit comments