import nox

PYTHON_VERSIONS = ['3.10', '3.11', '3.12']


@nox.session(python=PYTHON_VERSIONS)
def test(session: nox.Session) -> None:
    session.install('.[test]')
    session.run(
        'pytest',
        '--cov-report=xml',
        '--cov=chronpy',
        *session.posargs,
    )
