Skip to content

Commit d5f86f9

Browse files
authored
Update action.yml
1 parent 43fdee7 commit d5f86f9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/actions/build_pandas/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
editable:
55
description: Whether to build pandas in editable mode (default true)
66
default: true
7+
werror:
8+
description: Enable werror flag for build
9+
default: true
710
runs:
811
using: composite
912
steps:
@@ -24,11 +27,15 @@ runs:
2427

2528
- name: Build Pandas
2629
run: |
30+
SETUP_ARGS=""
31+
if [[ ${{ inputs.werror }} == "true" ]]; then
32+
SETUP_ARGS="--werror"
33+
fi
2734
if [[ ${{ inputs.editable }} == "true" ]]; then
2835
pip install -e . --no-build-isolation -v --no-deps \
29-
-Csetup-args="--werror"
36+
-Csetup-args=$SETUP_ARGS
3037
else
3138
pip install . --no-build-isolation -v --no-deps \
32-
-Csetup-args="--werror"
39+
-Csetup-args=$SETUP_ARGS
3340
fi
3441
shell: bash -el {0}

0 commit comments

Comments
 (0)