in noxfile.py [0:0]
def test(session, pandas_version: str):
session.install("-r", "requirements-dev.txt")
session.install(".")
session.run("python", "-m", "pip", "install", f"pandas~={pandas_version}")
session.run("python", "-m", "tests.setup_tests")
pytest_args = (
"python",
"-m",
"pytest",
"-ra",
"--tb=native",
"--cov-report=term-missing",
"--cov=eland/",
"--cov-config=setup.cfg",
"--doctest-modules",
"--nbval",
)
session.run(
*pytest_args,
*(session.posargs or ("eland/", "tests/")),
)
# Only run during default test execution
if not session.posargs:
session.run(
"python",
"-m",
"pip",
"uninstall",
"--yes",
"scikit-learn",
"xgboost",
"lightgbm",
)
session.run("pytest", "tests/ml/")