-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnoxfile.py
More file actions
43 lines (37 loc) · 752 Bytes
/
noxfile.py
File metadata and controls
43 lines (37 loc) · 752 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
import nox
from nox_poetry import Session, session
py_versions = ["3.9", "3.10", "3.11"]
nox.needs_version = ">= 2021.6.6"
nox.options.sessions = (
"tests",
)
@session(python=py_versions)
def tests(s: Session):
""" Run unit tests """
s.install(".")
s.install(
"asyncio",
"pytest",
"pytest-asyncio"
)
# run tests
s.run(
"pytest",
"test/horreum_client_test.py",
*s.posargs
)
@session(python=py_versions)
def its(s: Session):
""" Run integration tests """
s.install(".")
s.install(
"asyncio",
"pytest",
"pytest-asyncio"
)
# run tests
s.run(
"pytest",
"test/horreum_client_it.py",
*s.posargs
)