Skip to content

Commit 7d0b0e2

Browse files
authored
CI: Use better pip check to uninstall existing pandas (#54096)
1 parent 7672459 commit 7d0b0e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/build_pandas/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ runs:
1616

1717
- name: Uninstall existing Pandas installation
1818
run: |
19-
if pip list | grep -q ^pandas; then
20-
pip uninstall -y pandas || true
19+
if pip show pandas 1>/dev/null; then
20+
pip uninstall -y pandas
2121
fi
2222
shell: bash -el {0}
2323

0 commit comments

Comments
 (0)