Skip to content

Commit 5fa5b2d

Browse files
committed
Check with greater equal bound instead of exact match
1 parent 9674d19 commit 5fa5b2d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ jobs:
9393
pip install -e .[test] scikit-learn==${{ matrix.scikit-learn }}
9494
9595
# scikit-learn 1.7+ requires pandas 3.x, earlier versions use pandas 2.x
96-
if [[ "${{ matrix.scikit-learn }}" == "1.7."* ]]; then
96+
version="${{ matrix.scikit-learn }}"
97+
major=$(echo "$version" | cut -d. -f1)
98+
minor=$(echo "$version" | cut -d. -f2)
99+
100+
if [[ "$major" -gt 1 ]] || { [[ "$major" -eq 1 ]] && [[ "$minor" -ge 7 ]]; }; then
97101
pip install "pandas==3.*"
98102
else
99103
pip install "pandas==2.*"

0 commit comments

Comments
 (0)