-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnoxfile.py
More file actions
46 lines (39 loc) · 989 Bytes
/
noxfile.py
File metadata and controls
46 lines (39 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import nox
_py_versions = range(11, 15)
@nox.session(python=[f"3.{v}" for v in _py_versions])
def test(session):
session.install(".[test]")
session.chdir("tests")
session.run(
"pytest",
"-x",
"-s",
*session.posargs, # propagates sys.argv to pytest
)
@nox.session(python=["3.12"])
def test_dev(session):
"""runs against cogent3 develop branch"""
session.install(".[test]")
session.install(
"cogent3 @ git+https://github.com/cogent3/cogent3.git@develop",
"--no-cache-dir",
)
session.chdir("tests")
session.run(
"pytest",
"-x",
*session.posargs, # propagates sys.argv to pytest
)
@nox.session(python=[f"3.{v}" for v in _py_versions])
def htmlcov(session):
session.install(".[test]")
session.install(".")
session.chdir("tests")
session.run(
"pytest",
"-x",
"--cov-report",
"html",
"--cov",
"mdeq",
)