-
Notifications
You must be signed in to change notification settings - Fork 0
/
noxfile.py
40 lines (34 loc) · 832 Bytes
/
noxfile.py
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
import nox
@nox.session()
def clean(session):
session.install("coverage")
session.run("coverage", "erase")
@nox.session()
def py3(session):
session.install(
"-e",
".",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-timeout",
"pytest-xdist",
"aiohttp",
"coverage",
"typing_extensions",
)
session.run("./certs.sh", "client", external=True)
session.run("./certs.sh", "server", external=True)
session.run(
"pytest",
"--cov=src/socket_proxy",
"--cov-append",
"-n=4",
"--asyncio-mode=auto",
"--timeout=5",
)
@nox.session()
def report(session):
session.install("coverage")
session.run("coverage", "html")
session.run("coverage", "report", "--fail-under=80")