Skip to content

Commit

Permalink
Update tests script with new envs folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
clechot committed Aug 24, 2021
1 parent 6d84af5 commit 6d1ebf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_and_run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import venv

env_os = "windows" if platform.system() == "Windows" else "centos7"
env_py = f"py{sys.version_info[0]}{sys.version_info[1]}"
env_py = f"py{sys.version_info[0]}.{sys.version_info[1]}"

env_dir = tempfile.TemporaryDirectory(prefix="pyprt-test-venv")
venv.create(env_dir.name, with_pip=True)
Expand All @@ -15,7 +15,7 @@

os.system(f"{py_cmd} -m pip install --upgrade pip")
os.system(f"{py_cmd} -m pip install --upgrade wheel")
os.system(f"{py_cmd} -m pip install -r envs/{env_os}/{env_py}/requirements.txt")
os.system(f"{py_cmd} -m pip install -r envs/{env_os}/wheel/requirements-{env_py}.txt")

os.system(f"{py_cmd} setup.py clean --all")
os.system(f"{py_cmd} setup.py install")
Expand Down

0 comments on commit 6d1ebf9

Please sign in to comment.