Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>

This commit is contained in:
Igor Radovanovic
2023-09-18 12:48:58 +02:00
parent 2729ba59ac
commit 36cdc34c63
2 changed files with 6 additions and 8 deletions

View File

@@ -6,9 +6,7 @@ test_locations = ["openbb_sdk/sdk/core/tests", "openbb_sdk/providers"]
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def tests(session):
session.install("poetry")
# run a shell command
session.run("ls", "-la")
# session.run("sh", "./openbb_sdk/install_all.sh")
# session.install("pytest")
# session.install("pytest-cov")
# session.run("pytest", *test_locations, "--cov=openbb_sdk/")
session.run("sh", "./openbb_sdk/install_all.sh")
session.install("pytest")
session.install("pytest-cov")
session.run("pytest", *test_locations, "--cov=openbb_sdk/")

View File

@@ -4,9 +4,9 @@
PYTHON_EXEC=$(which python)
# Install all openbb sdk (core+provider), extensions and providers in editable mode
find extensions providers sdk -type f -name "pyproject.toml" -execdir sh -c '
find extensions providers sdk/core sdk/provider -type f -name "pyproject.toml" -execdir sh -c '
echo "Installing $(basename "$PWD")..."
"$1" -m poetry install -C "${PWD}" >/dev/null 2>&1
"$1" -m poetry install -C "${PWD}"
if [ $? -ne 0 ]; then
echo "Script terminated!"
exit 1