mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-31 06:22:18 +00:00
Change how action runs tests
This commit is contained in:
5
.github/workflows/sdkv4-core.yml
vendored
5
.github/workflows/sdkv4-core.yml
vendored
@@ -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
8
noxfile.py
Normal 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")
|
||||
Reference in New Issue
Block a user