File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
import warnings
2
2
from importlib import import_module
3
3
4
- import numpy as np
4
+ # making the benchmarks fail, to see if this is detected by the CI:
5
+ # import numpy as np
5
6
import pandas as pd
6
7
from pandas .util import testing as tm
7
8
Original file line number Diff line number Diff line change @@ -144,3 +144,22 @@ jobs:
144
144
condition: true
145
145
env:
146
146
REPO_DIR: $(Build.ArtifactStagingDirectory)/pandas-docs-travis
147
+
148
+ - script : |
149
+ export PATH=$HOME/miniconda3/bin:$PATH
150
+ source activate pandas-dev
151
+ if git diff upstream/master --name-only | grep -q "^asv_bench/"; then
152
+ cd asv_bench
153
+ ASV_ERRORS=$(asv dev > /dev/null)
154
+ if [[ $ASV_ERRORS ]]; then
155
+ echo "Benchmarks reported errors:"
156
+ echo $ASV_ERRORS
157
+ exit 1
158
+ else
159
+ echo "Benchmark run without errors"
160
+ fi
161
+ else
162
+ echo "Benchmark not running, no changes detected"
163
+ fi
164
+ displayName: 'Running benchmarks'
165
+ condition: true
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ dependencies:
10
10
- pytz
11
11
12
12
# development
13
+ - asv
13
14
- Cython>=0.28.2
14
15
- flake8
15
16
- flake8-comprehensions
You can’t perform that action at this time.
0 commit comments