#2620: publish result of test and checking if pipeline fails
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user