#2620: attempting to fail pipeline if notebook fails

This commit is contained in:
Czar Echavez
2024-07-01 12:21:05 +01:00
parent ee4e152f13
commit cb61756e43

View File

@@ -109,6 +109,7 @@ stages:
- task: PublishTestResults@2
condition: succeededOrFailed()
displayName: 'Publish Test Results'
inputs:
testRunner: JUnit
testResultsFiles: 'junit/**.xml'
@@ -131,10 +132,4 @@ stages:
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