@@ -30,6 +30,9 @@ def unit_tests(session, python_version):
3030 # Run unit tests against all supported versions of Python.
3131 session .interpreter = 'python{}' .format (python_version )
3232
33+ # Set the virtualenv dirname.
34+ session .virtualenv_dirname = 'unit-' + python_version
35+
3336 # Install all test dependencies, then install this package in-place.
3437 session .install ('mock' , 'pytest' , 'pytest-cov' , * LOCAL_DEPS )
3538 session .install ('-e' , '.' )
@@ -54,6 +57,9 @@ def system_tests(session, python_version):
5457 # Run the system tests against latest Python 2 and Python 3 only.
5558 session .interpreter = 'python{}' .format (python_version )
5659
60+ # Set the virtualenv dirname.
61+ session .virtualenv_dirname = 'sys-' + python_version
62+
5763 # Install all test dependencies, then install this package into the
5864 # virutalenv's dist-packages.
5965 session .install ('mock' , 'pytest' , * LOCAL_DEPS )
@@ -72,6 +78,7 @@ def lint(session):
7278 serious code quality issues.
7379 """
7480 session .interpreter = 'python3.6'
81+
7582 session .install ('flake8' , 'pylint' , 'gcp-devrel-py-tools' , * LOCAL_DEPS )
7683 session .install ('.' )
7784 session .run ('flake8' , 'google/cloud/bigquery' )
@@ -89,6 +96,10 @@ def lint(session):
8996def lint_setup_py (session ):
9097 """Verify that setup.py is valid (including RST check)."""
9198 session .interpreter = 'python3.6'
99+
100+ # Set the virtualenv dirname.
101+ session .virtualenv_dirname = 'setup'
102+
92103 session .install ('docutils' , 'Pygments' )
93104 session .run (
94105 'python' , 'setup.py' , 'check' , '--restructuredtext' , '--strict' )
@@ -102,6 +113,7 @@ def cover(session):
102113 test runs (not system test runs), and then erases coverage data.
103114 """
104115 session .interpreter = 'python3.6'
116+
105117 session .install ('coverage' , 'pytest-cov' )
106118 session .run ('coverage' , 'report' , '--show-missing' , '--fail-under=100' )
107119 session .run ('coverage' , 'erase' )
0 commit comments