5454 if : ${{ needs.changes.outputs.changes == 'true' }}
5555 strategy :
5656 matrix :
57- os : [ubuntu-20.04 ]
57+ os : [ubuntu-latest ]
5858 floatx : [float64]
59- python-version : ["3.12 "]
59+ python-version : ["3.13 "]
6060 test-subset :
6161 - |
6262 tests/test_util.py
@@ -158,15 +158,13 @@ jobs:
158158 - name : Install-pymc
159159 run : |
160160 pip install -e .
161- # TODO: https://github.com/pymc-devs/pymc/issues/7417
162- pip install --pre -U 'polyagamma<1.3.7'
163161 python --version
164162 micromamba list
165163 - name : Run tests
166164 run : |
167165 python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
168166 - name : Upload coverage to Codecov
169- uses : codecov/codecov-action@v4
167+ uses : codecov/codecov-action@v5
170168 with :
171169 token : ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
172170 env_vars : TEST_SUBSET
@@ -210,7 +208,6 @@ jobs:
210208 - name : Install-pymc
211209 run : |
212210 pip install -e .
213- pip install --pre -U 'polyagamma<1.3.7'
214211 python --version
215212 micromamba list
216213 - name : Run tests
@@ -219,7 +216,7 @@ jobs:
219216 run : >-
220217 python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 %TEST_SUBSET%
221218 - name : Upload coverage to Codecov
222- uses : codecov/codecov-action@v4
219+ uses : codecov/codecov-action@v5
223220 with :
224221 token : ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
225222 env_vars : TEST_SUBSET
@@ -233,7 +230,7 @@ jobs:
233230 matrix :
234231 os : [macos-latest]
235232 floatx : [float64]
236- python-version : ["3.12 "]
233+ python-version : ["3.13 "]
237234 test-subset :
238235 - |
239236 tests/sampling/test_parallel.py
@@ -277,23 +274,27 @@ jobs:
277274 run : |
278275 python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
279276 - name : Upload coverage to Codecov
280- uses : codecov/codecov-action@v4
277+ uses : codecov/codecov-action@v5
281278 with :
282279 token : ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
283280 env_vars : TEST_SUBSET
284281 name : ${{ matrix.os }} ${{ matrix.floatx }}
285282 fail_ci_if_error : false
286283
287- external_samplers :
284+ alternative_backends :
288285 needs : changes
289286 if : ${{ needs.changes.outputs.changes == 'true' }}
290287 strategy :
291288 matrix :
292- os : [ubuntu-20.04 ]
289+ os : [ubuntu-latest ]
293290 floatx : [float64]
294- python-version : ["3.12 "]
291+ python-version : ["3.13 "]
295292 test-subset :
296- - tests/sampling/test_jax.py tests/sampling/test_mcmc_external.py
293+ - |
294+ tests/distributions/test_random_alternative_backends.py
295+ tests/sampling/test_jax.py
296+ tests/sampling/test_mcmc_external.py
297+
297298 fail-fast : false
298299 runs-on : ${{ matrix.os }}
299300 env :
@@ -308,7 +309,7 @@ jobs:
308309 persist-credentials : false
309310 - uses : mamba-org/setup-micromamba@v2
310311 with :
311- environment-file : conda-envs/environment-jax .yml
312+ environment-file : conda-envs/environment-alternative-backends .yml
312313 create-args : >-
313314 python=${{matrix.python-version}}
314315 environment-name : pymc-test
@@ -323,11 +324,11 @@ jobs:
323324 run : |
324325 python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
325326 - name : Upload coverage to Codecov
326- uses : codecov/codecov-action@v4
327+ uses : codecov/codecov-action@v5
327328 with :
328329 token : ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
329330 env_vars : TEST_SUBSET
330- name : JAX tests - ${{ matrix.os }} ${{ matrix.floatx }}
331+ name : Alternative backend tests - ${{ matrix.os }} ${{ matrix.floatx }}
331332 fail_ci_if_error : false
332333
333334 float32 :
@@ -337,7 +338,7 @@ jobs:
337338 matrix :
338339 os : [windows-latest]
339340 floatx : [float32]
340- python-version : ["3.12 "]
341+ python-version : ["3.13 "]
341342 test-subset :
342343 - tests/sampling/test_mcmc.py tests/ode/test_ode.py tests/ode/test_utils.py tests/distributions/test_transform.py
343344 fail-fast : false
@@ -363,7 +364,6 @@ jobs:
363364 - name : Install-pymc
364365 run : |
365366 pip install -e .
366- pip install --pre -U 'polyagamma<1.3.7'
367367 python --version
368368 micromamba list
369369 - name : Run tests
@@ -372,7 +372,7 @@ jobs:
372372 run : >-
373373 python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 %TEST_SUBSET%
374374 - name : Upload coverage to Codecov
375- uses : codecov/codecov-action@v4
375+ uses : codecov/codecov-action@v5
376376 with :
377377 token : ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
378378 env_vars : TEST_SUBSET
@@ -382,13 +382,13 @@ jobs:
382382 all_tests :
383383 if : ${{ always() }}
384384 runs-on : ubuntu-latest
385- needs : [ changes, ubuntu, windows, macos, external_samplers , float32 ]
385+ needs : [ changes, ubuntu, windows, macos, alternative_backends , float32 ]
386386 steps :
387387 - name : Check build matrix status
388388 if : ${{ needs.changes.outputs.changes == 'true' &&
389389 ( needs.ubuntu.result != 'success' ||
390390 needs.windows.result != 'success' ||
391391 needs.macos.result != 'success' ||
392- needs.external_samplers .result != 'success' ||
392+ needs.alternative_backends .result != 'success' ||
393393 needs.float32.result != 'success' ) }}
394394 run : exit 1
0 commit comments