Skip to content

Commit 9aab2bf

Browse files
author
James Choi
committed
Add softmax notebook to be tested on CI. nbmake allows to run the notebook with pytest.
1 parent b72c5df commit 9aab2bf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,11 @@ jobs:
135135
# -rf: print failed tests
136136
# --timeout: max allowed time for each test
137137
pytest -rf --timeout=60
138+
139+
- name: Run Notebook Tests
140+
run: |
141+
source .venv/bin/activate
142+
# Run notebooks with longer timeout (notebooks include autotuning which takes time)
143+
# --nbmake: execute notebooks and check for errors
144+
# --overwrite: allow nbmake to overwrite notebook outputs
145+
pytest --nbmake --overwrite notebooks/ --timeout=300 -v

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ filecheck
55
expecttest
66
numpy
77
rich
8+
nbmake

0 commit comments

Comments
 (0)