@@ -11,49 +11,45 @@ jobs:
11
11
py36_np15 :
12
12
ENV_FILE : ci/deps/azure-windows-36.yaml
13
13
CONDA_PY : " 36"
14
+ PATTERN : " not slow and not network"
14
15
15
16
py37_np141 :
16
17
ENV_FILE : ci/deps/azure-windows-37.yaml
17
18
CONDA_PY : " 37"
19
+ PATTERN : " not slow and not network"
18
20
19
21
steps :
20
22
- powershell : |
21
23
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
22
24
Write-Host "##vso[task.prependpath]$HOME/miniconda3/bin"
23
25
displayName: 'Add conda to PATH'
24
26
- script : conda update -q -n base conda
25
- displayName : Update conda
26
- - script : |
27
- call activate
27
+ displayName : ' Update conda'
28
+ - bash : |
28
29
conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml
29
30
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
33
34
ci\\incremental\\build.cmd
34
35
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
38
39
displayName: 'Test'
39
40
- task : PublishTestResults@2
40
41
inputs :
41
42
testResultsFiles : ' test-data.xml'
42
43
testRunTitle : ' Windows-$(CONDA_PY)'
43
44
- 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) {
48
47
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
54
50
}
55
51
displayName: 'Check for test failures'
56
- - script : |
52
+ - bash : |
57
53
source activate pandas-dev
58
54
python ci/print_skipped.py
59
55
displayName: 'Print skipped tests'
0 commit comments