mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
* nox file to account for all dirs inside sdk (core+provider) * adding integration marker
17 lines
407 B
Python
17 lines
407 B
Python
import nox
|
|
|
|
test_locations = [
|
|
"openbb_sdk/tests",
|
|
"openbb_sdk/sdk",
|
|
"openbb_sdk/providers",
|
|
]
|
|
|
|
|
|
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
|
|
def tests(session):
|
|
session.install("poetry")
|
|
session.run("sh", "./openbb_sdk/install_all.sh", external=True)
|
|
session.install("pytest")
|
|
session.install("pytest-cov")
|
|
session.run("pytest", *test_locations, "--cov=openbb_sdk/")
|