@@ -23,33 +23,34 @@ jobs:
23
23
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
24
24
Write-Host "##vso[task.prependpath]$HOME/miniconda3/bin"
25
25
displayName: 'Add conda to PATH'
26
+
26
27
- script : conda update -q -n base conda
27
28
displayName : ' Update conda'
29
+
28
30
- bash : |
29
31
conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml
30
32
displayName: 'Create anaconda environment'
33
+
31
34
- bash : |
32
35
source activate pandas-dev
33
36
conda list
34
37
python setup.py build_ext -q -i
35
38
python -m pip install --no-build-isolation -e .
36
39
displayName: 'Build'
40
+
37
41
- bash : |
38
42
source activate pandas-dev
39
43
ci/run_tests.sh
40
44
displayName: 'Test'
45
+
41
46
- task : PublishTestResults@2
47
+ condition : succeededOrFailed()
42
48
inputs :
49
+ failTaskOnFailedTests : true
43
50
testResultsFiles : ' test-data.xml'
44
- testRunTitle : ' Windows-$(CONDA_PY)'
45
- - powershell : |
46
- $(Get-Content "test-data.xml" | Out-String) -match 'failures="(.*?)"'
47
- if ($matches[1] -eq 0) {
48
- Write-Host "No test failures in test-data"
49
- } else {
50
- Write-Error "$($matches[1]) tests failed" # will produce $LASTEXITCODE=1
51
- }
52
- displayName: 'Check for test failures'
51
+ testRunTitle : ${{ format('{0}-$(CONDA_PY)', parameters.name) }}
52
+ displayName : ' Publish test results'
53
+
53
54
- bash : |
54
55
source activate pandas-dev
55
56
python ci/print_skipped.py
0 commit comments