• Home
  • Raw
  • Download

Lines Matching full:session

57 @nox.session(python=DEFAULT_PYTHON_VERSION)
58 def lint(session): argument
64 session.install("flake8", "flake8-import-order", BLACK_VERSION)
65 session.install(".")
66 session.run(
69 session.run("flake8", "google", "tests")
72 @nox.session(python=DEFAULT_PYTHON_VERSION)
73 def blacken(session): argument
78 session.install(BLACK_VERSION)
79 session.run("black", *BLACK_EXCLUDES, *BLACK_PATHS)
82 def default(session, install_grpc=True): argument
83 """Default unit test session.
91 CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
95 session.install("mock", "pytest", "pytest-cov")
97 session.install("-e", ".[grpc]", "-c", constraints_path)
99 session.install("-e", ".", "-c", constraints_path)
114 pytest_args.extend(session.posargs)
118 if _greater_or_equal_than_36(session.python):
119 session.install("asyncmock", "pytest-asyncio", "proto-plus")
123 session.run(*pytest_args)
126 session.run(*pytest_args)
129 @nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"])
130 def unit(session): argument
132 default(session)
135 @nox.session(python=["3.6", "3.7", "3.8", "3.9"])
136 def unit_grpc_gcp(session): argument
139 CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
142 session.install("-e", ".[grpcgcp]", "-c", constraints_path)
144 default(session)
147 @nox.session(python=["3.6", "3.10"])
148 def unit_wo_grpc(session): argument
150 default(session, install_grpc=False)
153 @nox.session(python="3.6")
154 def lint_setup_py(session): argument
157 session.install("docutils", "Pygments")
158 session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
162 @nox.session(python="3.6")
163 def pytype(session): argument
165 session.install(".[grpc, grpcgcp]", "pytype >= 2019.3.21")
166 session.run("pytype")
169 @nox.session(python=DEFAULT_PYTHON_VERSION)
170 def mypy(session): argument
172 session.install(".[grpc, grpcgcp]", "mypy")
173 session.install(
176 session.run("mypy", "google", "tests")
179 @nox.session(python="3.6")
180 def cover(session): argument
186 session.install("coverage", "pytest-cov")
187 session.run("coverage", "report", "--show-missing", "--fail-under=100")
188 session.run("coverage", "erase")
191 @nox.session(python="3.8")
192 def docs(session): argument
195 session.install("-e", ".[grpc, grpcgcp]")
196 session.install("sphinx==4.0.1", "alabaster", "recommonmark")
199 session.run(
213 @nox.session(python="3.8")
214 def docfx(session): argument
217 session.install("-e", ".")
218 session.install(
223 session.run(