Skip to content

Commit 2d68e5c

Browse files
committed
Run smallpt.ipynb in ci and test output for Chrome
1 parent bfce3a6 commit 2d68e5c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,24 @@ jobs:
316316
fi
317317
timeout-minutes: 4
318318

319-
- name: Jupyter Lite integration
319+
- name: Jupyter Lite integration test
320320
shell: bash -l {0}
321321
run: |
322322
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus -c conda-forge
323323
micromamba activate xeus-lite-host
324-
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }}
324+
jupyter lite serve --settings-overrides=overrides.json --XeusAddon.prefix=${{ env.PREFIX }} \
325+
--XeusAddon.mounts="${{ env.PREFIX }}/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
326+
--XeusAddon.mounts="${{ env.PREFIX }}/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" \
327+
--contents README.md \
328+
--contents notebooks/xeus-cpp-lite-demo.ipynb \
329+
--contents notebooks/smallpt.ipynb \
330+
--contents notebooks/images/marie.png \
331+
--contents notebooks/audio/audio.wav
332+
python -m pip install nbdime
333+
python -m pip install selenium
334+
python scripts/automated-notebook-run-script.py --driver chrome
335+
nbdiff notebooks/smallpt.ipynb $HOME/smallpt.ipynb
336+
timeout-minutes: 5
325337

326338
- name: Setup tmate session
327339
if: ${{ failure() && runner.debug }}

0 commit comments

Comments
 (0)