diff options
author | Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> | 2023-09-18 12:48:58 +0200 |
---|---|---|
committer | Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> | 2023-09-18 12:48:58 +0200 |
commit | 36cdc34c632a06d3b2766672583e2ef28cd4afb0 (patch) | |
tree | 931ee5937bd5e150379fec622ec2743009f42ff7 | |
parent | 2729ba59ac7e98eb770d7c5db55670cb72f5dc0b (diff) |
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
-rw-r--r-- | noxfile.py | 10 | ||||
-rwxr-xr-x | openbb_sdk/install_all.sh | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/noxfile.py b/noxfile.py index 045831de24b..cd051090916 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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/") diff --git a/openbb_sdk/install_all.sh b/openbb_sdk/install_all.sh index 542443dc0bb..46c6fd1cd81 100755 --- a/openbb_sdk/install_all.sh +++ b/openbb_sdk/install_all.sh @@ -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 |