mirror of
https://github.com/pyannote/pyannote-audio.git
synced 2026-11-20 13:07:51 +09:00
17 lines
440 B
Python
17 lines
440 B
Python
from glob import glob
|
|
|
|
import papermill as pm
|
|
|
|
|
|
def test_can_run_notebooks():
|
|
# Search for all notebooks in directory
|
|
notebooks = glob("**/notebook/**/*.ipynb")
|
|
for nb in notebooks:
|
|
try:
|
|
pm.execute_notebook(
|
|
nb, "/dev/null", progress_bar=False, kernel_name="python"
|
|
)
|
|
except Exception as e:
|
|
# Which notebook caused the error
|
|
raise Exception(nb, e)
|