• Home
  • Raw
  • Download

Lines Matching full:session

56 @nox.session(python=DEFAULT_PYTHON_VERSION)
57 def lint(session): argument
63 session.install("flake8", BLACK_VERSION)
64 session.install(".")
65 session.run(
71 session.run("flake8", "google", "tests")
74 @nox.session(python=DEFAULT_PYTHON_VERSION)
75 def blacken(session): argument
80 session.install(BLACK_VERSION)
81 session.run("black", *BLACK_EXCLUDES, *BLACK_PATHS)
84 def install_prerelease_dependencies(session, constraints_path): argument
94 session.install(*constraints_deps)
106 session.install("--pre", "--no-deps", "--upgrade", dep)
112 session.install(*other_deps)
115 def default(session, install_grpc=True, prerelease=False, install_async_rest=False): argument
116 """Default unit test session.
124 unittest.skip("The pre-release session cannot be run without grpc")
126 session.install(
149 session,
153 session.install("-e", lib_with_extras, "--no-deps")
156 f"{constraints_dir}/constraints-{constraints_type}{session.python}.txt"
160 constraints_file = f"{constraints_dir}/constraints-{session.python}.txt"
162 session.install(
170 session.run(
175 session.run(
181 session.run("python", "-c", "import grpc; print(grpc.__version__)")
182 session.run("python", "-c", "import google.auth; print(google.auth.__version__)")
190 session.posargs
206 session.install("asyncmock", "pytest-asyncio")
210 if not session.posargs:
214 session.run(*pytest_args)
217 @nox.session(python=PYTHON_VERSIONS)
218 def unit(session): argument
220 default(session)
223 @nox.session(python=PYTHON_VERSIONS)
224 def unit_w_prerelease_deps(session): argument
226 default(session, prerelease=True)
229 @nox.session(python=PYTHON_VERSIONS)
230 def unit_grpc_gcp(session): argument
238 CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
241 session.install("-e", ".[grpcgcp]", "-c", constraints_path)
243 session.install("protobuf<4.0.0")
245 default(session)
248 @nox.session(python=PYTHON_VERSIONS)
249 def unit_wo_grpc(session): argument
251 default(session, install_grpc=False)
254 @nox.session(python=PYTHON_VERSIONS)
255 def unit_w_async_rest_extra(session): argument
257 default(session, install_async_rest=True)
260 @nox.session(python=DEFAULT_PYTHON_VERSION)
261 def lint_setup_py(session): argument
264 session.install("docutils", "Pygments")
265 session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
268 @nox.session(python=DEFAULT_PYTHON_VERSION)
269 def pytype(session): argument
271 session.install(".[grpc]", "pytype")
272 session.run("pytype")
275 @nox.session(python=DEFAULT_PYTHON_VERSION)
276 def mypy(session): argument
278 session.install(".[grpc,async_rest]", "mypy")
279 session.install(
286 session.run("mypy", "google", "tests")
289 @nox.session(python=DEFAULT_PYTHON_VERSION)
290 def cover(session): argument
296 session.install("coverage", "pytest-cov")
297 session.run("coverage", "report", "--show-missing", "--fail-under=100")
298 session.run("coverage", "erase")
301 @nox.session(python="3.10")
302 def docs(session): argument
305 session.install("-e", ".[grpc]")
306 session.install(
322 session.run(
336 @nox.session(python="3.10")
337 def docfx(session): argument
340 session.install("-e", ".")
341 session.install(
357 session.run(