@@ -355,19 +355,32 @@ jobs:
355355 # to run notebooks in it. If you try to run the notebooks before the website is
356356 # ready the ci python script will crash saying ti cannot access the url
357357 sleep 10
358+ echo "Running xeus-cpp in Jupter Lite in Chrome"
358359 python -u scripts/automated-notebook-run-script.py --driver chrome --notebook ${{ matrix.notebook }} --kernel ${{ matrix.kernel }}
360+ echo "Diff Notebooks Chrome"
359361 nbdiff notebooks/${{ matrix.notebook }} $HOME/Downloads/${{ matrix.notebook }} --ignore-id --ignore-metadata
360- rm $HOME/Downloads/${{ matrix.notebook }}
362+ export CHROME_TESTS_RETURN_VALUE=$?
363+ echo "Running xeus-cpp in Jupter Lite in Firefox"
361364 python -u scripts/automated-notebook-run-script.py --driver firefox --notebook ${{ matrix.notebook }} --kernel ${{ matrix.kernel }}
365+ echo "Diff Notebooks Firefox"
362366 nbdiff notebooks/${{ matrix.notebook }} $HOME/Downloads/${{ matrix.notebook }} --ignore-id --ignore-metadata
363- rm $HOME/Downloads/${{ matrix.notebook }}
367+ export FIREFOX_TESTS_RETURN_VALUE=$?
368+ rm $HOME/Downloads/${{ matrix.notebook }}
369+ export SAFARI_TESTS_RETURN_VALUE=0
364370 if [[ "${{ matrix.os }}" == "macos"* ]]; then
365371 python -m pip install PyAutoGUI
366372 python scripts/enable-downloads-safari-github-ci.py
367373 python -u scripts/automated-notebook-run-script.py --driver safari --notebook ${{ matrix.notebook }} --kernel ${{ matrix.kernel }}
374+ echo "Running xeus-cpp in Jupter Lite in Safari"
375+ echo "Diff Notebooks Safari"
368376 nbdiff notebooks/${{ matrix.notebook }} $HOME/Downloads/${{ matrix.notebook }} --ignore-id --ignore-metadata
377+ export SAFARI_TESTS_RETURN_VALUE=$?
369378 rm $HOME/Downloads/${{ matrix.notebook }}
370379 fi
380+ if [[ $SAFARI_TESTS_RETURN_VALUE -ne 0 || $FIREFOX_TESTS_RETURN_VALUE -ne 0 || $CHROME_TESTS_RETURN_VALUE -ne 0 ]]; then
381+ echo "Diff for Safari, Chrome or Firefox returned non zero value (could be more than one)"
382+ exit 1
383+ fi
371384 timeout-minutes : 15
372385
373386 - name : Setup tmate session
0 commit comments