mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 21:22:24 +00:00
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
This commit is contained in:
10
noxfile.py
10
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/")
|
||||
|
||||
4
openbb_sdk/install_all.sh
vendored
4
openbb_sdk/install_all.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user