summaryrefslogtreecommitdiff
path: root/noxfile.py
blob: 483369f9d6782daf227df2fe889cd30cc2beb0d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import nox


@nox.session(python=['3.7'])
def docs(session):
    session.install('sphinx', 'sphinx-rtd-theme', '.')
    session.chdir('docs')
    tmpdir = session.create_tmp()

    session.run('sphinx-build', '-a', '-W', '-T', '-b', 'html',
                '-d', '{}/doctrees'.format(tmpdir), '.', '{}/html'.format(tmpdir))


@nox.session(python=['3.5', '3.6', '3.7', '3.8', '3.9'])
def tests(session):
    session.install('invoke', './[test]')
    session.run('invoke', 'pytest', '--junit', '--no-pty')
    session.run('codecov')