mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
tools: add pytest_nb target to easily test notebooks
This commit is contained in:
@@ -82,7 +82,7 @@ jobs:
|
||||
run: |
|
||||
make strip_nb
|
||||
make notebook_timeout
|
||||
poetry run pytest --nbmake examples/*.ipynb
|
||||
make pytest_nb
|
||||
- name: Test coverage
|
||||
id: coverage
|
||||
if: ${{ steps.pytest.outcome != 'skipped' && !cancelled() }}
|
||||
|
||||
4
Makefile
4
Makefile
@@ -161,6 +161,10 @@ notebook_timeout:
|
||||
poetry run python ./script/nbmake_utils/notebook_test_timeout.py examples
|
||||
.PHONY: notebook_timeout
|
||||
|
||||
pytest_nb:
|
||||
poetry run pytest --nbmake examples/*.ipynb
|
||||
.PHONY: pytest_nb
|
||||
|
||||
benchmark:
|
||||
poetry run pytest benchmarks/ --benchmark-save=findings
|
||||
.PHONY: benchmark
|
||||
|
||||
Reference in New Issue
Block a user