diff --git a/.azure/azure-ci-build-pipeline.yaml b/.azure/azure-ci-build-pipeline.yaml index 7ac50ea8..a45d26bc 100644 --- a/.azure/azure-ci-build-pipeline.yaml +++ b/.azure/azure-ci-build-pipeline.yaml @@ -128,6 +128,13 @@ stages: summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' # Run the notebooks to make sure that they work - script: | - pytest --nbmake -n=auto src/primaite/notebooks - pytest --nbmake -n=auto src/primaite/simulator/_package_data + pytest --nbmake -n=auto src/primaite/notebooks --junit-xml=./notebook-tests/notebooks.xml + pytest --nbmake -n=auto src/primaite/simulator/_package_data --junit-xml=./notebook-tests/package-notebooks.xml displayName: 'Run notebooks' + - task: PublishTestResults@2 + condition: succeededOrFailed() + inputs: + testRunner: JUnit + testResultsFiles: 'notebook-tests/**.xml' + testRunTitle: 'Publish Notebook run' + failTaskOnFailedTests: true diff --git a/.gitignore b/.gitignore index e48dc5dc..140a3d0b 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,7 @@ cover/ tests/assets/**/*.png tests/assets/**/tensorboard_logs/ tests/assets/**/checkpoints/ +notebook-tests/*.xml # Translations *.mo diff --git a/src/primaite/notebooks/multi-processing.ipynb b/src/primaite/notebooks/multi-processing.ipynb index 86b549a7..6fc8b4c2 100644 --- a/src/primaite/notebooks/multi-processing.ipynb +++ b/src/primaite/notebooks/multi-processing.ipynb @@ -18,6 +18,15 @@ "Import packages and read config file." ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "1/0" + ] + }, { "cell_type": "code", "execution_count": null, @@ -143,7 +152,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.10.11" } }, "nbformat": 4,