Skip to content

Commit 41fa758

Browse files
committed
ci: split some test into sections with optional deps
1 parent 34a929d commit 41fa758

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,14 @@ jobs:
182182
set -e
183183
python3 -m venv .venv
184184
source .venv/Scripts/activate
185-
uv pip install "nutpie[all]" --find-links dist --force-reinstall
185+
uv pip install "nutpie[stan]" --find-links dist --force-reinstall
186186
uv pip install pytest pytest-timeout
187-
pytest
187+
pytest -m "stan and not flow"
188+
uv pip install "nutpie[pymc]" --find-links dist --force-reinstall
189+
uv pip install jax
190+
pytest -m "pymc and not flow"
191+
uv pip install "nutpie[all]" --find-links dist --force-reinstall
192+
pytest -m flow
188193
189194
macos:
190195
runs-on: ${{ matrix.platform.runner }}
@@ -226,10 +231,14 @@ jobs:
226231
set -e
227232
python3 -m venv .venv
228233
source .venv/bin/activate
229-
uv pip install 'nutpie[all]' --find-links dist --force-reinstall
234+
uv pip install 'nutpie[stan]' --find-links dist --force-reinstall
230235
uv pip install pytest pytest-timeout
231-
pytest -m "not (flow and stan)" # The stan tests seem to run out of memory on macOS?
232-
236+
pytest -m "stan and not flow"
237+
uv pip install 'nutpie[pymc]' --find-links dist --force-reinstall
238+
uv pip install jax
239+
pytest -m "pymc and not flow"
240+
uv pip install 'nutpie[all]' --find-links dist --force-reinstall
241+
pytest -m flow
233242
sdist:
234243
runs-on: ubuntu-latest
235244
steps:

tests/test_pymc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def test_normalizing_flow(kind):
280280
).with_transform_adapt(
281281
verbose=True,
282282
coupling_type=kind,
283-
num_layers=2,
283+
num_layers=4,
284284
)
285285
trace = nutpie.sample(
286286
compiled,
@@ -311,7 +311,7 @@ def test_normalizing_flow_1d(kind):
311311
).with_transform_adapt(
312312
verbose=True,
313313
coupling_type=kind,
314-
num_layers=2,
314+
num_layers=4,
315315
)
316316
trace = nutpie.sample(
317317
compiled,

0 commit comments

Comments
 (0)