#2620: fix indentation

This commit is contained in:
Czar Echavez
2024-07-02 00:25:30 +01:00
parent 8097884ae2
commit 918eba2217

View File

@@ -121,19 +121,19 @@ stages:
condition: or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'Darwin'))
shell: bash
# Run notebooks
- script: |
pytest --nbmake -n=auto src/primaite/notebooks --junit-xml=./notebook-tests/notebooks.xml
$notebooks_exit_code = $LASTEXITCODE
pytest --nbmake -n=auto src/primaite/simulator/_package_data --junit-xml=./notebook-tests/package-notebooks.xml
$package_notebooks_exit_code = $LASTEXITCODE
# Fail step if either of these do not have exit code 0
if ($notebooks_exit_code -ne 0 -or $package_notebooks_exit_code -ne 0) {
exit 1
}
displayName: 'Run notebooks on Windows'
condition: eq(variables['Agent.OS'], 'Windows_NT')
shell: pwsh
# Run notebooks
- script: |
pytest --nbmake -n=auto src/primaite/notebooks --junit-xml=./notebook-tests/notebooks.xml
$notebooks_exit_code = $LASTEXITCODE
pytest --nbmake -n=auto src/primaite/simulator/_package_data --junit-xml=./notebook-tests/package-notebooks.xml
$package_notebooks_exit_code = $LASTEXITCODE
# Fail step if either of these do not have exit code 0
if ($notebooks_exit_code -ne 0 -or $package_notebooks_exit_code -ne 0) {
exit 1
}
displayName: 'Run notebooks on Windows'
condition: eq(variables['Agent.OS'], 'Windows_NT')
shell: pwsh
- task: PublishTestResults@2
condition: succeededOrFailed()