Skip to content

Commit e0a0325

Browse files
Drop latest ArviZ tests, upgrade to Ubuntu 20.04 and add MacOS jobs
1 parent 8087861 commit e0a0325

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

.github/workflows/tests.yml

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
ubuntu:
3333
strategy:
3434
matrix:
35-
os: [ubuntu-18.04]
35+
os: [ubuntu-20.04]
3636
floatx: [float32, float64]
3737
test-subset:
3838
# How this works:
@@ -248,13 +248,24 @@ jobs:
248248
env_vars: TEST_SUBSET
249249
name: ${{ matrix.os }} ${{ matrix.floatx }}
250250
fail_ci_if_error: false
251-
jax:
251+
macos:
252252
strategy:
253253
matrix:
254-
os: [ubuntu-latest]
254+
os: [macos-latest]
255255
floatx: [float64]
256256
test-subset:
257-
- pymc/tests/test_sampling_jax.py
257+
- |
258+
pymc/tests/test_parallel_sampling.py
259+
pymc/tests/test_posteriors.py
260+
pymc/tests/test_sampling.py
261+
262+
- |
263+
pymc/tests/test_data_container.py
264+
pymc/tests/test_idata_conversion.py
265+
pymc/tests/test_missing.py
266+
pymc/tests/test_model.py
267+
pymc/tests/test_shape_handling.py
268+
pymc/tests/test_shared.py
258269
fail-fast: false
259270
runs-on: ${{ matrix.os }}
260271
env:
@@ -301,38 +312,22 @@ jobs:
301312
conda activate pymc-test-py39
302313
pip install -e .
303314
python --version
304-
- name: Install jax specific dependencies
305-
run: |
306-
conda activate pymc-test-py39
307-
pip install "numpyro>=0.8.0"
308-
pip install git+https://github.com/blackjax-devs/blackjax.git@main
309315
- name: Run tests
310316
run: |
311317
python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
312318
- name: Upload coverage to Codecov
313319
uses: codecov/codecov-action@v2
314320
with:
315321
env_vars: TEST_SUBSET
316-
name: JAX tests - ${{ matrix.os }} ${{ matrix.floatx }}
322+
name: ${{ matrix.os }} ${{ matrix.floatx }}
317323
fail_ci_if_error: false
318-
arviz:
324+
jax:
319325
strategy:
320326
matrix:
321-
os: [ubuntu-latest, macos-latest]
327+
os: [ubuntu-20.04]
322328
floatx: [float64]
323329
test-subset:
324-
- |
325-
pymc/tests/test_parallel_sampling.py
326-
pymc/tests/test_posteriors.py
327-
pymc/tests/test_sampling.py
328-
329-
- |
330-
pymc/tests/test_data_container.py
331-
pymc/tests/test_idata_conversion.py
332-
pymc/tests/test_missing.py
333-
pymc/tests/test_model.py
334-
pymc/tests/test_shape_handling.py
335-
pymc/tests/test_shared.py
330+
- pymc/tests/test_sampling_jax.py
336331
fail-fast: false
337332
runs-on: ${{ matrix.os }}
338333
env:
@@ -379,17 +374,17 @@ jobs:
379374
conda activate pymc-test-py39
380375
pip install -e .
381376
python --version
382-
- name: Install latest arviz
377+
- name: Install jax specific dependencies
383378
run: |
384379
conda activate pymc-test-py39
385-
pip uninstall arviz -y
386-
pip install git+https://github.com/arviz-devs/arviz
380+
pip install "numpyro>=0.8.0"
381+
pip install git+https://github.com/blackjax-devs/blackjax.git@main
387382
- name: Run tests
388383
run: |
389384
python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
390385
- name: Upload coverage to Codecov
391386
uses: codecov/codecov-action@v2
392387
with:
393388
env_vars: TEST_SUBSET
394-
name: ArviZ compat - ${{ matrix.os }} ${{ matrix.floatx }}
389+
name: JAX tests - ${{ matrix.os }} ${{ matrix.floatx }}
395390
fail_ci_if_error: false

0 commit comments

Comments
 (0)