aboutsummaryrefslogtreecommitdiff
path: root/noxfile.py
blob: cf6d78556aee6a119ac0c300c9a6bcf2d3e3c5fb (plain)
1
2
3
4
5
6
7
8
9
10
import nox


# Thanks https://cjolowicz.github.io/posts/hypermodern-python-02-testing/

@nox.session(python=["3.7", "3.8"])
def tests(session):
    session.run("pip", "install", "-r", "requirements.txt", external=True)
    session.run("pip", "install", "-r", "requirements_dev.txt", external=True)
    session.run("pytest -q")