diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index 55f80bf644ecc..cb0b17e3553a4 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -69,20 +69,13 @@ jobs: displayName: 'Build versions' - task: PublishTestResults@2 + condition: succeededOrFailed() inputs: + failTaskOnFailedTests: true testResultsFiles: 'test-data.xml' testRunTitle: ${{ format('{0}-$(CONDA_PY)', parameters.name) }} displayName: 'Publish test results' - - powershell: | - $(Get-Content "test-data.xml" | Out-String) -match 'failures="(.*?)"' - if ($matches[1] -eq 0) { - Write-Host "No test failures in test-data" - } else { - Write-Error "$($matches[1]) tests failed" # will produce $LASTEXITCODE=1 - } - displayName: 'Check for test failures' - - script: | source activate pandas-dev python ci/print_skipped.py diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml index 536c2fdbf1353..03529bd6569c6 100644 --- a/ci/azure/windows.yml +++ b/ci/azure/windows.yml @@ -23,33 +23,34 @@ jobs: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" Write-Host "##vso[task.prependpath]$HOME/miniconda3/bin" displayName: 'Add conda to PATH' + - script: conda update -q -n base conda displayName: 'Update conda' + - bash: | conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml displayName: 'Create anaconda environment' + - bash: | source activate pandas-dev conda list python setup.py build_ext -q -i python -m pip install --no-build-isolation -e . displayName: 'Build' + - bash: | source activate pandas-dev ci/run_tests.sh displayName: 'Test' + - task: PublishTestResults@2 + condition: succeededOrFailed() inputs: + failTaskOnFailedTests: true testResultsFiles: 'test-data.xml' - testRunTitle: 'Windows-$(CONDA_PY)' - - powershell: | - $(Get-Content "test-data.xml" | Out-String) -match 'failures="(.*?)"' - if ($matches[1] -eq 0) { - Write-Host "No test failures in test-data" - } else { - Write-Error "$($matches[1]) tests failed" # will produce $LASTEXITCODE=1 - } - displayName: 'Check for test failures' + testRunTitle: ${{ format('{0}-$(CONDA_PY)', parameters.name) }} + displayName: 'Publish test results' + - bash: | source activate pandas-dev python ci/print_skipped.py