-
Notifications
You must be signed in to change notification settings - Fork 0
/
noxfile.py
35 lines (25 loc) · 964 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_VERSIONS = ["3.6", "3.7", "3.8"]
PACKAGE = "abilian"
@nox.session(python="python3.6")
def lint(session):
session.install("poetry", "psycopg2-binary")
session.run("poetry", "install", "-q")
session.run("yarn", external="True")
session.run("make", "lint-ci")
@nox.session(python=PYTHON_VERSIONS)
def pytest(session):
print("SQLALCHEMY_DATABASE_URI=", session.env.get("SQLALCHEMY_DATABASE_URI"))
session.run("poetry", "install", "-q", external=True)
session.install("psycopg2-binary")
session.run("yarn", external=True)
session.run("pip", "check")
session.run("pytest", "-q")
# TODO later
# @nox.session(python="3.8")
# def typeguard(session):
# # session.env["LC_ALL"] = "en_US.UTF-8"
# session.install("psycopg2-binary")
# session.run("poetry", "install", "-q", external="True")
# session.run("yarn", external="True")
# session.run("pytest", f"--typeguard-packages={PACKAGE}")