Add support for gRPC connection management (available when using optional grpc_gcp dependency) (#5553)
diff --git a/nox.py b/nox.py
index 7b40c68..dacfbb5 100644
--- a/nox.py
+++ b/nox.py
@@ -66,6 +66,23 @@
@nox.session
[email protected]('py', ['2.7', '3.5', '3.6', '3.7'])
+def unit_grpc_gcp(session, py):
+ """Run the unit test suite with grpcio-gcp installed."""
+
+ # Run unit tests against all supported versions of Python.
+ session.interpreter = 'python{}'.format(py)
+
+ # Set the virtualenv dirname.
+ session.virtualenv_dirname = 'unit-grpc-gcp-' + py
+
+ # Install grpcio-gcp
+ session.install('grpcio-gcp')
+
+ default(session)
+
+
[email protected]
def lint(session):
"""Run linters.