Skip to content

Commit 763a3ea

Browse files
committed
Do not install nutpie for external sampler tests
Conda nutpie, and soon pip, depend on the last release of PyMC and by association PyTensor, leading to dependency issues when trying to test compatibility after PyMC bumps the PyTensor dependency.
1 parent 5bf1bb7 commit 763a3ea

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ jobs:
364364
- name: Install external samplers
365365
run: |
366366
conda activate pymc-test
367-
conda install -c conda-forge nutpie
368367
pip install "numpyro>=0.8.0"
369368
pip install git+https://github.com/blackjax-devs/[email protected]
370369
- name: Run tests

tests/sampling/test_mcmc_external.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@
1717

1818
from pymc import Model, Normal, sample
1919

20-
pytest.importorskip("nutpie")
21-
pytest.importorskip("blackjax")
22-
pytest.importorskip("numpyro")
23-
2420
# turns all warnings into errors for this module
2521
pytestmark = pytest.mark.filterwarnings("error")
2622

2723

2824
@pytest.mark.parametrize("nuts_sampler", ["pymc", "nutpie", "blackjax", "numpyro"])
2925
def test_external_nuts_sampler(recwarn, nuts_sampler):
26+
if nuts_sampler != "pymc":
27+
pytest.importorskip(nuts_sampler)
28+
3029
with Model():
3130
Normal("x")
3231

0 commit comments

Comments
 (0)