Skip to content

Commit

Permalink
Do not install nutpie for external sampler tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ricardoV94 committed Feb 27, 2023
1 parent 4d1db1b commit f59adee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ jobs:
- name: Install external samplers
run: |
conda activate pymc-test
conda install -c conda-forge nutpie
pip install "numpyro>=0.8.0"
pip install git+https://github.com/blackjax-devs/blackjax.git@0.7.0
- name: Run tests
Expand Down
7 changes: 3 additions & 4 deletions tests/sampling/test_mcmc_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@

from pymc import Model, Normal, sample

pytest.importorskip("nutpie")
pytest.importorskip("blackjax")
pytest.importorskip("numpyro")

# turns all warnings into errors for this module
pytestmark = pytest.mark.filterwarnings("error")


@pytest.mark.parametrize("nuts_sampler", ["pymc", "nutpie", "blackjax", "numpyro"])
def test_external_nuts_sampler(recwarn, nuts_sampler):
if nuts_sampler != "pymc":
pytest.importorskip(nuts_sampler)

with Model():
Normal("x")

Expand Down

0 comments on commit f59adee

Please sign in to comment.