26 lines
539 B
Python
26 lines
539 B
Python
import nox
|
|
|
|
VERSIONS = ["3.10", "3.11"]
|
|
|
|
|
|
@nox.session(python=VERSIONS)
|
|
def tests(session):
|
|
session.run(
|
|
"pdm",
|
|
"export",
|
|
"-G",
|
|
"testing",
|
|
"-f",
|
|
"requirements",
|
|
"-o",
|
|
"requirements.txt",
|
|
external=True,
|
|
)
|
|
session.install("-r", "requirements.txt")
|
|
session.run("make", "tests", external=True)
|
|
session.run("rm", "requirements.txt", external=True)
|
|
|
|
|
|
@nox.session(python=VERSIONS)
|
|
def linters(session):
|
|
session.run("make", "linters", external=True)
|