@@ -543,7 +543,7 @@ def docfx(session):
543
543
)
544
544
545
545
546
- def prerelease (session : nox .sessions .Session , tests_path ):
546
+ def prerelease (session : nox .sessions .Session , tests_path , extra_pytest_options = () ):
547
547
constraints_path = str (
548
548
CURRENT_DIRECTORY / "testing" / f"constraints-{ session .python } .txt"
549
549
)
@@ -588,7 +588,7 @@ def prerelease(session: nox.sessions.Session, tests_path):
588
588
session .install (
589
589
"--upgrade" ,
590
590
"--pre" ,
591
- "ibis-framework>=8 .0.0,<9.0.0dev " ,
591
+ "ibis-framework>=9 .0.0,<=9.2.0 " ,
592
592
)
593
593
already_installed .add ("ibis-framework" )
594
594
@@ -662,6 +662,7 @@ def prerelease(session: nox.sessions.Session, tests_path):
662
662
"--cov-report=term-missing" ,
663
663
"--cov-fail-under=0" ,
664
664
tests_path ,
665
+ * extra_pytest_options ,
665
666
* session .posargs ,
666
667
)
667
668
@@ -675,7 +676,24 @@ def unit_prerelease(session: nox.sessions.Session):
675
676
@nox .session (python = SYSTEM_TEST_PYTHON_VERSIONS [- 1 ])
676
677
def system_prerelease (session : nox .sessions .Session ):
677
678
"""Run the system test suite with prerelease dependencies."""
678
- prerelease (session , os .path .join ("tests" , "system" , "small" ))
679
+ small_tests_dir = os .path .join ("tests" , "system" , "small" )
680
+
681
+ # Let's exclude remote function tests from the prerelease tests, since the
682
+ # some of the package dependencies propagate to the cloud run functions'
683
+ # requirements.txt, and the prerelease package versions may not be available
684
+ # in the standard pip install.
685
+ # This would mean that we will only rely on the standard remote function
686
+ # tests.
687
+ small_remote_function_tests = os .path .join (
688
+ small_tests_dir , "test_remote_function.py"
689
+ )
690
+ assert os .path .exists (small_remote_function_tests )
691
+
692
+ prerelease (
693
+ session ,
694
+ os .path .join ("tests" , "system" , "small" ),
695
+ (f"--ignore={ small_remote_function_tests } " ,),
696
+ )
679
697
680
698
681
699
@nox .session (python = SYSTEM_TEST_PYTHON_VERSIONS )
0 commit comments