-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
22 lines (18 loc) · 721 Bytes
/
noxfile.py
File metadata and controls
22 lines (18 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import nox
import re
from pathlib import Path
mydir = Path(__file__).parent
extraPythons = []
if (mydir/".extrapythons").exists():
with open(mydir/".extrapythons", "r") as extraPythonsFile:
for line in extraPythonsFile:
line = line.strip()
if len(line) != 0 and not re.match(r'\s*#.*', line):
extraPythons.append(line.strip())
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"] + extraPythons)
def test(session):
session.install("-r", "requirements.txt")
#session.env["CMAKE_ARGS"] = "-DCMAKE_BUILD_TYPE=Debug"
#session.install("--no-build-isolation", "--editable", ".")
session.install(".")
session.run("pytest", "code/wrappers/python")