@@ -69,20 +69,23 @@ def unit(session, py):
6969
7070
7171@nox .session
72- @nox .parametrize ('py' , ['2.7' , '3.6' ])
73- def system (session , py ):
74- """Run the system test suite."""
75-
76- # Sanity check: Only run system tests if the environment variable is set.
77- if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
78- session .skip ('Credentials must be set via environment variable.' )
72+ @nox .parametrize ('py' , ['2.7' , '3.4' , '3.5' , '3.6' , '3.7' ])
73+ def unit_grpc_gcp (session , py ):
74+ """Run the unit test suite with grpcio-gcp installed."""
7975
80- # Run the system tests against latest Python 2 and Python 3 only .
76+ # Run unit tests against all supported versions of Python.
8177 session .interpreter = 'python{}' .format (py )
8278
8379 # Set the virtualenv dirname.
84- session .virtualenv_dirname = 'sys-' + py
80+ session .virtualenv_dirname = 'unit-grpc-gcp-' + py
81+
82+ # Install grpcio-gcp
83+ session .install ('grpcio-gcp' )
8584
85+ default (session )
86+
87+
88+ def system_common (session ):
8689 # Use pre-release gRPC for system tests.
8790 session .install ('--pre' , 'grpcio' )
8891
@@ -96,6 +99,45 @@ def system(session, py):
9699 session .run ('py.test' , '--quiet' , 'tests/system' , * session .posargs )
97100
98101
102+ @nox .session
103+ @nox .parametrize ('py' , ['2.7' , '3.6' ])
104+ def system (session , py ):
105+ """Run the system test suite."""
106+
107+ # Sanity check: Only run system tests if the environment variable is set.
108+ if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
109+ session .skip ('Credentials must be set via environment variable.' )
110+
111+ # Run the system tests against latest Python 2 and Python 3 only.
112+ session .interpreter = 'python{}' .format (py )
113+
114+ # Set the virtualenv dirname.
115+ session .virtualenv_dirname = 'sys-' + py
116+
117+ system_common (session )
118+
119+
120+ @nox .session
121+ @nox .parametrize ('py' , ['2.7' , '3.6' ])
122+ def system_grpc_gcp (session , py ):
123+ """Run the system test suite with grpcio-gcp installed."""
124+
125+ # Sanity check: Only run system tests if the environment variable is set.
126+ if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
127+ session .skip ('Credentials must be set via environment variable.' )
128+
129+ # Run the system tests against latest Python 2 and Python 3 only.
130+ session .interpreter = 'python{}' .format (py )
131+
132+ # Set the virtualenv dirname.
133+ session .virtualenv_dirname = 'sys-grpc-gcp-' + py
134+
135+ # Install grpcio-gcp
136+ session .install ('grpcio-gcp' )
137+
138+ system_common (session )
139+
140+
99141@nox .session
100142def lint (session ):
101143 """Run linters.
0 commit comments