Add remaining nox sessions based on tox.ini

This change introduces venv and bindep sessions based on the same
testenvs from tox.ini.

Change-Id: I4d2c92d8cd9e96cbcd1b54c6b4b565aedc9a60e3
This commit is contained in:
Michael Kelly 2023-02-24 21:04:59 -08:00
parent c6b7308c68
commit 273da661db
No known key found for this signature in database
GPG Key ID: 77F7FE93040ECF3E

View File

@ -52,3 +52,18 @@ def linters(session):
set_standard_env_vars(session)
session.install('flake8')
session.run('flake8')
@nox.session(python='3')
def venv(session):
set_standard_env_vars(session)
session.install('-r', 'requirements.txt')
session.install('-e', '.')
session.run(*session.posargs)
@nox.session(python='3')
def bindep(session):
set_standard_env_vars(session)
session.install('bindep')
session.run('bindep', 'test')