Skip to content

Commit 342e3bb

Browse files
authored
Merge pull request #24883: [release-2.44.0]Install sklearn < 1.20.0 for sklearn postcommit tests (#24788)
2 parents 0d1c3f0 + e29d3b3 commit 342e3bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sdks/python/test-suites/direct/common.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,14 @@ task torchInferenceTest {
229229
task sklearnInferenceTest {
230230
dependsOn 'installGcpTest'
231231
dependsOn ':sdks:python:sdist'
232+
// TODO(https://github.com/apache/beam/issues/24787)
233+
// Scikit learn tests fails from version 1.2.0
234+
doFirst {
235+
exec {
236+
executable 'sh'
237+
args '-c', ". ${envdir}/bin/activate && pip install 'scikit-learn<1.2.0'"
238+
}
239+
}
232240
doLast {
233241
def testOpts = basicTestOpts
234242
def argMap = [

0 commit comments

Comments
 (0)