File tree Expand file tree Collapse file tree 3 files changed +13
-34
lines changed Expand file tree Collapse file tree 3 files changed +13
-34
lines changed Original file line number Diff line number Diff line change 4
4
editable :
5
5
description : Whether to build pandas in editable mode (default true)
6
6
default : true
7
- sanitize :
8
- description : Whether sanitizers should be used or not
9
- default : false
7
+ meson_args :
8
+ description : Extra flags to pass to meson
9
+ required : false
10
10
runs :
11
11
using : composite
12
12
steps :
28
28
- name : Build Pandas
29
29
run : |
30
30
if [[ ${{ inputs.editable }} == "true" ]]; then
31
- if [[ ${{ inputs.sanitize }} == "true" ]]; then
32
- CFLAGS="$CFLAGS -fno-sanitize-recover=all" \
33
- pip install -e . --no-build-isolation -v \
34
- --config-settings=setup-args="-Db_sanitize=address,undefined" --no-deps
35
- else
36
- pip install -e . --no-build-isolation -v --no-deps
37
- fi
31
+ pip install -e . --no-build-isolation -v --no-deps ${{ inputs.meson_args }}
38
32
else
39
- if [[ ${{ inputs.sanitize }} == "true" ]]; then
40
- CFLAGS="$CFLAGS -fno-sanitize-recover=all" \
41
- pip install . --no-build-isolation -v \
42
- --config-settings=setup-args="-Db_sanitize=address,undefined" --no-deps
43
- else
44
- pip install . --no-build-isolation -v --no-deps
45
- fi
33
+ pip install . --no-build-isolation -v --no-deps ${{ inputs.meson_args }}
46
34
fi
47
35
shell : bash -el {0}
Original file line number Diff line number Diff line change 1
1
name : Run tests and report results
2
- inputs :
3
- sanitize :
4
- description : Whether sanitizers should be used or not
5
- default : false
6
2
runs :
7
3
using : composite
8
4
steps :
9
5
- name : Test
10
- run : |
11
- if [[ ${{ inputs.sanitize }} == "true" ]]; then
12
- ASAN_OPTIONS=detect_leaks=0 \
13
- LD_PRELOAD=$(gcc -print-file-name=libasan.so) \
14
- ci/run_tests.sh
15
- else
16
- ci/run_tests.sh
17
- fi
6
+ run : ci/run_tests.sh
18
7
shell : bash -el {0}
19
8
20
9
- name : Publish test results
Original file line number Diff line number Diff line change @@ -323,25 +323,27 @@ jobs:
323
323
id : build
324
324
uses : ./.github/actions/build_pandas
325
325
with :
326
- sanitize : true
326
+ meson_args : --config-settings=setup-args="-Db_sanitize=address,undefined"
327
+ env :
328
+ CFLAGS="$CFLAGS -fno-sanitize-recover=all"
327
329
328
330
- name : Test (not single_cpu)
329
331
uses : ./.github/actions/run-tests
330
- with :
331
- sanitize : true
332
332
env :
333
333
PATTERN : " not slow and not network and not single_cpu and not known_ub"
334
334
PYTEST_WORKERS : ' auto'
335
335
PYTEST_TARGET : ' pandas'
336
+ ASAN_OPTIONS : detect_leaks=0
337
+ LD_PRELOAD : $(gcc -print-file-name=libasan.so)
336
338
337
339
- name : Test (single_cpu)
338
340
uses : ./.github/actions/run-tests
339
- with :
340
- sanitize : true
341
341
env :
342
342
PATTERN : " single_cpu and not known_ub"
343
343
PYTEST_WORKERS : 0
344
344
PYTEST_TARGET : ' pandas'
345
+ ASAN_OPTIONS : detect_leaks=0
346
+ LD_PRELOAD : $(gcc -print-file-name=libasan.so)
345
347
346
348
python-dev :
347
349
# This job may or may not run depending on the state of the next
You can’t perform that action at this time.
0 commit comments