Skip to content

Commit cb8b5da

Browse files
committed
Add more tests
1 parent 80f1ea9 commit cb8b5da

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

@@ -32,7 +39,7 @@ jobs:
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
@@ -48,6 +55,11 @@ jobs:
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

0 commit comments

Comments
 (0)