@@ -11,49 +11,45 @@ jobs:
1111 py36_np15 :
1212 ENV_FILE : ci/deps/azure-windows-36.yaml
1313 CONDA_PY : " 36"
14+ PATTERN : " not slow and not network"
1415
1516 py37_np141 :
1617 ENV_FILE : ci/deps/azure-windows-37.yaml
1718 CONDA_PY : " 37"
19+ PATTERN : " not slow and not network"
1820
1921 steps :
2022 - powershell : |
2123 Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
2224 Write-Host "##vso[task.prependpath]$HOME/miniconda3/bin"
2325 displayName: 'Add conda to PATH'
2426 - script : conda update -q -n base conda
25- displayName : Update conda
26- - script : |
27- call activate
27+ displayName : ' Update conda'
28+ - bash : |
2829 conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml
2930 displayName: 'Create anaconda environment'
30- - script : |
31- call activate pandas-dev
32- call conda list
31+ - bash : |
32+ source activate pandas-dev
33+ conda list
3334 ci\\incremental\\build.cmd
3435 displayName: 'Build'
35- - script : |
36- call activate pandas-dev
37- pytest -m "not slow and not network" --junitxml=test-data.xml pandas -n 2 -r sxX --strict --durations=10 %*
36+ - bash : |
37+ source activate pandas-dev
38+ ci/run_tests.sh
3839 displayName: 'Test'
3940 - task : PublishTestResults@2
4041 inputs :
4142 testResultsFiles : ' test-data.xml'
4243 testRunTitle : ' Windows-$(CONDA_PY)'
4344 - powershell : |
44- $junitXml = "test-data.xml"
45- $(Get-Content $junitXml | Out-String) -match 'failures="(.*?)"'
46- if ($matches[1] -eq 0)
47- {
45+ $(Get-Content "test-data.xml" | Out-String) -match 'failures="(.*?)"'
46+ if ($matches[1] -eq 0) {
4847 Write-Host "No test failures in test-data"
49- }
50- else
51- {
52- # note that this will produce $LASTEXITCODE=1
53- Write-Error "$($matches[1]) tests failed"
48+ } else {
49+ Write-Error "$($matches[1]) tests failed" # will produce $LASTEXITCODE=1
5450 }
5551 displayName: 'Check for test failures'
56- - script : |
52+ - bash : |
5753 source activate pandas-dev
5854 python ci/print_skipped.py
5955 displayName: 'Print skipped tests'
0 commit comments