Skip to content

Commit db1a640

Browse files
committed
ci: skip slow test on ci if emulating architecture
1 parent b0b9822 commit db1a640

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
source $HOME/.local/bin/env
8888
uv pip install --system -U pip pytest
8989
uv pip install --system 'nutpie[all]' --find-links dist --force-reinstall
90-
pytest
90+
pytest -m "not slow"
9191
9292
# pyarrow doesn't currently seem to work on musllinux
9393
#musllinux:

tests/test_pymc.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def test_pymc_var_names(backend, gradient_backend):
244244
assert not hasattr(trace.posterior, "c")
245245

246246

247+
@pytest.mark.slow
247248
def test_normalizing_flow():
248249
with pm.Model() as model:
249250
pm.HalfNormal("x", shape=2)
@@ -252,13 +253,14 @@ def test_normalizing_flow():
252253
model, backend="jax", gradient_backend="jax"
253254
).with_transform_adapt(
254255
num_diag_windows=6,
256+
verbose=True,
255257
)
256258
trace = nutpie.sample(
257259
compiled,
258260
chains=1,
259261
transform_adapt=True,
260262
window_switch_freq=150,
261-
tune=400,
263+
tune=600,
262264
seed=1,
263265
)
264266
draws = trace.posterior.x.isel(x_dim_0=0, chain=0)

0 commit comments

Comments
 (0)