#2620: attempting to fail pipeline if notebook fails
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user