File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
from distutils .command .clean import clean
2
2
import nox
3
3
import os
4
+ import sys
4
5
5
6
# Use system installed Python packages
6
7
PYT_PATH = '/opt/conda/lib/python3.8/site-packages' if not 'PYT_PATH' in os .environ else os .environ ["PYT_PATH" ]
11
12
12
13
SUPPORTED_PYTHON_VERSIONS = ["3.7" , "3.8" , "3.9" , "3.10" ]
13
14
14
- nox .options .sessions = ["l0_api_tests-3.7" ]
15
+ nox .options .sessions = ["l0_api_tests-" + "{}.{}" . format ( sys . version_info . major , sys . version_info . minor ) ]
15
16
16
17
def install_deps (session ):
17
18
print ("Installing deps" )
@@ -26,7 +27,6 @@ def download_models(session, use_host_env=False):
26
27
if use_host_env :
27
28
session .run_always ('python' , 'hub.py' , env = {'PYTHONPATH' : PYT_PATH })
28
29
else :
29
- session .install ("-r" , os .path .join (TOP_DIR , "py" , "requirements.txt" ))
30
30
session .run_always ('python' , 'hub.py' )
31
31
32
32
def install_torch_trt (session ):
@@ -132,7 +132,7 @@ def run_base_tests(session, use_host_env=False):
132
132
session .chdir (os .path .join (TOP_DIR , 'tests/py' ))
133
133
tests = [
134
134
"test_api.py" ,
135
- "test_to_backend_api.py"
135
+ "test_to_backend_api.py" ,
136
136
]
137
137
for test in tests :
138
138
if use_host_env :
You can’t perform that action at this time.
0 commit comments