-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnoxfile.py
73 lines (53 loc) · 2.67 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import nox
# nox.options.sessions = ["install_requirements", "install_requirements_plus_package", "install_requirements_dev", "install_requirements_dev_plus_package", "test_with_pytest", "tests"]
nox.options.sessions = [
"install_requirements",
"install_requirements_plus_package",
"install_requirements_dev",
"install_requirements_dev_plus_package",
"test_with_pytest",
"test_with_selenium_base",
"test_with_pytest_tui_logfold",
"test_with_pytest_tui_regexfold",
"test_with_selenium_bas_logfold",
"test_with_selenium_bas_regexfold",
]
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["install", "basic"])
def install_requirements_user(session):
session.install("-r", "reqts/requirements.txt")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["install"])
def install_requirements_user_plus_pytest_tui_package(session):
install_requirements_user(session)
session.install(".")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["install", "dev"])
def install_requirements_dev(session):
session.install("-r", "reqts/requirements-dev.txt")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["install", "dev"])
def install_requirements_dev_plus_pytest_tui_package(session):
install_requirements_dev(session)
session.install(".")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["tui"])
def test_with_pytest_tui(session):
session.install("-r", "reqts/requirements-dev.txt")
session.install(".")
session.run("pytest", "demo-tests/", "--tui")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["tui", "fold", "log"])
def test_with_pytest_tui_logfold(session):
install_requirements_dev_plus_pytest_tui_package(session)
session.run("pytest", "demo-tests/", "--tui", "tui-fold-level=debug")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["tui", "fold", "log"])
def test_with_selenium_base_logfold(session):
test_with_pytest_tui_logfold(session)
session.install("--upgrade", "-Iv", "rich==13.3.0")
session.install("selenium-base")
session.run("pytest", "testing/sb")
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["tui", "fold", "regex"])
def test_with_pytest_tui_regexfold(session):
install_requirements_dev_plus_pytest_tui_package(session)
session.run("pytest", "demo-tests/", "--tui", "tui-fold-regex=;") # ZWS & ZWJ
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], tags=["tui", "fold", "regex"])
def test_with_selenium_base_regexfold(session):
test_with_pytest_tui_regexfold(session)
session.install("--upgrade", "-Iv", "rich==13.3.0")
session.install("selenium-base")
session.run("pytest", "testing/sb")