Change how action runs tests

This commit is contained in:
James Maslek
2023-07-28 11:30:44 -04:00
parent 631308bc9b
commit 74b1d0f038
2 changed files with 10 additions and 3 deletions

View File

@@ -17,9 +17,8 @@ jobs:
run: |
python -m venv .venv
source .venv/bin/activate
pip install ./openbb_sdk
pip install pytest
pip install nox
- name: Run tests
run: |
source .venv/bin/activate
pytest openbb_sdk/sdk/core/tests
nox -s tests

8
noxfile.py Normal file
View File

@@ -0,0 +1,8 @@
import nox
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def tests(session):
session.install("./openbb_sdk")
session.install("pytest")
session.run("pytest", "openbb_sdk/sdk/core/tests")