Skip to content

Commit 998596e

Browse files
committed
Install scikit-learn<1.8.0 for minimum tests
1 parent dfc25f3 commit 998596e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/minimum.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ jobs:
3131
run: |
3232
python -m pip install --upgrade pip
3333
python -m pip install invoke .[test]
34+
python -m pip install "scikit-learn<1.8.0"
3435
- name: Test with minimum versions
3536
run: invoke minimum

tasks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ def _get_minimum_versions(dependencies, python_version):
101101
@task
102102
def install_minimum(c):
103103
with open('pyproject.toml', 'rb') as pyproject_file:
104-
pyproject_data = tomli.load(pyproject_file).get('project', {})
104+
pyproject_data = tomli.load(pyproject_file)
105105

106-
dependencies = pyproject_data.get('dependencies', [])
107-
dependencies += pyproject_data.get('optional-dependencies', {}).get('tutorials', [])
106+
dependencies = pyproject_data.get('project', {}).get('dependencies', [])
108107
python_version = '.'.join(map(str, sys.version_info[:2]))
109108
minimum_versions = _get_minimum_versions(dependencies, python_version)
110109

0 commit comments

Comments
 (0)