Skip to content

Commit d3148c2

Browse files
committed
[tests] Automate Jupyter notebook tests using nbmake.
This uses the nbmake pytest plugin to run the Jupyter notebooks in `make examples-test`. Fixes #450.
1 parent 34c0933 commit d3148c2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ install-test: | install-test-setup
319319
$(call pytest,--no-success-flaky-report --benchmark-disable -n auto -k "not fuzz" --durations=5)
320320

321321
examples-test:
322-
cd examples && pytest --no-success-flaky-report --benchmark-disable -n auto --durations=5 . --cov=compiler_gym --cov-report=xml:$(COV_REPORT) $(PYTEST_ARGS)
322+
cd examples && pytest --nbmake --no-success-flaky-report --benchmark-disable -n auto --durations=5 . --cov=compiler_gym --cov-report=xml:$(COV_REPORT) $(PYTEST_ARGS)
323323

324324
# Note we export $CI=1 so that the tests always run as if within the CI
325325
# environement. This is to ensure that the reported coverage matches that of

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
flaky==3.7.0
2+
nbmake==0.9
23
psutil==5.8.0 # Implicit dependency of pytest-xdist
34
pytest==6.1.0
45
pytest-benchmark==3.2.3

0 commit comments

Comments
 (0)