File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,17 @@ jobs:
1919 # as well as selected previous versions on
2020 # https://pytorch.org/get-started/previous-versions/
2121 torch-version : ["2.2.2", "2.4.0"]
22+ sklearn-version : ["latest"]
2223 include :
2324 - os : windows-latest
2425 torch-version : 2.4.0
2526 python-version : " 3.10"
27+ sklearn-version : " latest"
28+ include :
29+ - os : ubuntu-latest
30+ torch-version : 2.4.0
31+ python-version : " 3.10"
32+ sklearn-version : " legacy"
2633
2734 runs-on : ${{ matrix.os }}
2835
3239 uses : actions/cache@v3
3340 with :
3441 path : ~/.cache/pip
35- key : pip-os_${{ runner.os }}-python_${{ matrix.python-version }}-torch_${{ matrix.torch-version }}
42+ key : pip-os_${{ runner.os }}-python_${{ matrix.python-version }}-torch_${{ matrix.torch-version }}-sklearn_${{ matrix.sklearn-version }}
3643
3744 - name : Checkout code
3845 uses : actions/checkout@v2
4855 python -m pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
4956 pip install '.[dev,datasets,integrations]'
5057
58+ - name : Check sklearn legacy version
59+ if : matrix.sklearn-version == 'legacy'
60+ run : |
61+ pip install scikit-learn==1.4.2 '.[dev,datasets,integrations]'
62+
5163 - name : Run the formatter
5264 run : |
5365 make format
You can’t perform that action at this time.
0 commit comments