@@ -13,17 +13,31 @@ jobs:
1313 strategy :
1414 matrix :
1515 include :
16+ # Regular Python versions (no special package versions)
1617 - python-version : " 3.10"
1718 - python-version : " 3.12"
1819 - python-version : " 3.13"
19- # Add three variants for Python 3.11 with different sklearn versions
20+
21+ # Python 3.11 with different scikit-learn versions
2022 - python-version : " 3.11"
2123 sklearn-version : " 1.5.2"
2224 - python-version : " 3.11"
2325 sklearn-version : " 1.6.1"
2426 - python-version : " 3.11"
2527 sklearn-version : " 1.7.0"
2628
29+ # Python 3.11 with different NumPy versions
30+ - python-version : " 3.11"
31+ numpy-version : " 1.26.4"
32+ - python-version : " 3.11"
33+ numpy-version : " 2.0.1"
34+ - python-version : " 3.11"
35+ numpy-version : " 2.1.1"
36+ - python-version : " 3.11"
37+ numpy-version : " 2.2.2"
38+ - python-version : " 3.11"
39+ numpy-version : " 2.3.1"
40+
2741 steps :
2842 - uses : actions/checkout@v5
2943
@@ -40,12 +54,20 @@ jobs:
4054 python -m pip install --upgrade pip
4155 pip install -r requirements.txt
4256 pip install -r test_requirements.txt
43- # Only install specific sklearn version if defined in matrix
57+
58+ # Install specific scikit-learn version if defined
4459 if [ -n "${{ matrix.sklearn-version }}" ]; then
60+ echo "Installing scikit-learn==${{ matrix.sklearn-version }}"
4561 pip install scikit-learn==${{ matrix.sklearn-version }}
4662 fi
4763
64+ # Install specific NumPy version if defined
65+ if [ -n "${{ matrix.numpy-version }}" ]; then
66+ echo "Installing numpy==${{ matrix.numpy-version }}"
67+ pip install numpy==${{ matrix.numpy-version }}
68+ fi
69+
4870 - name : Test with pytest
4971 run : |
5072 pip install pytest
51- pytest
73+ pytest
0 commit comments