-
Notifications
You must be signed in to change notification settings - Fork 529
/
noxfile.py
35 lines (25 loc) · 937 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
import nox
python = ["2.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
nox.options.stop_on_first_error = True
@nox.session(python=python[-1])
def test_check_manifest(session):
session.install("check-manifest")
session.run("check-manifest")
@nox.session(python=python[-1])
def test_mypy(session):
session.install(".")
session.install("-rrequirements_test.txt")
session.install("-rrequirements_diagrams.txt")
session.install("-rrequirements_mypy.txt")
session.run("pytest", "-nauto", "--doctest-modules", "tests/")
@nox.session(python=python)
def test(session):
session.install(".")
session.install("-rrequirements_test.txt")
session.install("-rrequirements_diagrams.txt")
session.run("pytest", "-nauto", "tests/")
@nox.session(python=python[-1])
def test_no_gv(session):
session.install(".")
session.install("-rrequirements_test.txt")
session.run("pytest", "-nauto", "tests/")