Skip to content

Commit 2e94c6b

Browse files
committed
add test for sklearn versions
1 parent 87c3a52 commit 2e94c6b

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,30 @@ jobs:
8484
- name: Test with pytest
8585
run: |
8686
python -m pytest src/hyperactive -p no:warnings
87+
88+
test-sklearn-versions:
89+
name: test-sklearn-${{ matrix.sklearn-version }}
90+
runs-on: ubuntu-latest
91+
92+
strategy:
93+
fail-fast: false
94+
matrix:
95+
sklearn-version: ["1.5", "1.6", "1.7"]
96+
97+
steps:
98+
- uses: actions/checkout@v4
99+
100+
- name: Set up Python 3.12
101+
uses: actions/setup-python@v5
102+
with:
103+
python-version: "3.12"
104+
105+
- name: Install dependencies for scikit-learn ${{ matrix.sklearn-version }}
106+
run: |
107+
python -m pip install --upgrade pip
108+
python -m pip install build pytest
109+
python -m pip install scikit-learn==${{ matrix.sklearn-version }}
110+
111+
- name: Run sklearn integration tests for ${{ matrix.sklearn-version }}
112+
run: |
113+
python -m pytest -x -p no:warnings tests/integrations/sklearn/

0 commit comments

Comments
 (0)