|
16 | 16 | name: Windows |
17 | 17 | vmImage: vs2017-win2016 |
18 | 18 |
|
19 | | -- job: 'Checks' |
20 | | - pool: |
21 | | - vmImage: ubuntu-16.04 |
22 | | - timeoutInMinutes: 90 |
23 | | - steps: |
24 | | - - script: | |
25 | | - echo '##vso[task.prependpath]$(HOME)/miniconda3/bin' |
26 | | - echo '##vso[task.setvariable variable=ENV_FILE]environment.yml' |
27 | | - echo '##vso[task.setvariable variable=AZURE]true' |
28 | | - displayName: 'Setting environment variables' |
29 | | -
|
30 | | - # Do not require a conda environment |
31 | | - - script: ci/code_checks.sh patterns |
32 | | - displayName: 'Looking for unwanted patterns' |
33 | | - condition: true |
34 | | - |
35 | | - - script: | |
36 | | - sudo apt-get update |
37 | | - sudo apt-get install -y libc6-dev-i386 |
38 | | - ci/setup_env.sh |
39 | | - displayName: 'Setup environment and build pandas' |
40 | | - condition: true |
41 | | -
|
42 | | - # Do not require pandas |
43 | | - - script: | |
44 | | - source activate pandas-dev |
45 | | - ci/code_checks.sh lint |
46 | | - displayName: 'Linting' |
47 | | - condition: true |
48 | | -
|
49 | | - - script: | |
50 | | - source activate pandas-dev |
51 | | - ci/code_checks.sh dependencies |
52 | | - displayName: 'Dependencies consistency' |
53 | | - condition: true |
54 | | -
|
55 | | - # Require pandas |
56 | | - - script: | |
57 | | - source activate pandas-dev |
58 | | - ci/code_checks.sh code |
59 | | - displayName: 'Checks on imported code' |
60 | | - condition: true |
61 | | -
|
62 | | - - script: | |
63 | | - source activate pandas-dev |
64 | | - ci/code_checks.sh doctests |
65 | | - displayName: 'Running doctests' |
66 | | - condition: true |
67 | | -
|
68 | | - - script: | |
69 | | - source activate pandas-dev |
70 | | - ci/code_checks.sh docstrings |
71 | | - displayName: 'Docstring validation' |
72 | | - condition: true |
73 | | -
|
74 | | - - script: | |
75 | | - source activate pandas-dev |
76 | | - ci/code_checks.sh typing |
77 | | - displayName: 'Typing validation' |
78 | | - condition: true |
79 | | -
|
80 | | - - script: | |
81 | | - source activate pandas-dev |
82 | | - pytest --capture=no --strict scripts |
83 | | - displayName: 'Testing docstring validation script' |
84 | | - condition: true |
85 | | -
|
86 | | - - script: | |
87 | | - source activate pandas-dev |
88 | | - cd asv_bench |
89 | | - asv check -E existing |
90 | | - git remote add upstream https://github.com/pandas-dev/pandas.git |
91 | | - git fetch upstream |
92 | | - if git diff upstream/master --name-only | grep -q "^asv_bench/"; then |
93 | | - asv machine --yes |
94 | | - ASV_OUTPUT="$(asv dev)" |
95 | | - if [[ $(echo "$ASV_OUTPUT" | grep "failed") ]]; then |
96 | | - echo "##vso[task.logissue type=error]Benchmarks run with errors" |
97 | | - echo "$ASV_OUTPUT" |
98 | | - exit 1 |
99 | | - else |
100 | | - echo "Benchmarks run without errors" |
101 | | - fi |
102 | | - else |
103 | | - echo "Benchmarks did not run, no changes detected" |
104 | | - fi |
105 | | - displayName: 'Running benchmarks' |
106 | | - condition: true |
107 | | -
|
108 | 19 | - job: 'Web_and_Docs' |
109 | 20 | pool: |
110 | 21 | vmImage: ubuntu-16.04 |
|
0 commit comments