diff --git a/.kokoro/presubmit-instance/common.cfg b/.kokoro/presubmit-instance/common.cfg new file mode 100644 index 000000000..3fe938b47 --- /dev/null +++ b/.kokoro/presubmit-instance/common.cfg @@ -0,0 +1,19 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +# action { +# define_artifacts { +# regex: "**/*sponge_log.xml" +# } +# } + +container_properties { + docker_image: "gcr.io/cloud-devrel-kokoro-resources/python-multi@sha256:9bb9bd3cd602cf04a361ef46d2f32e514ed06ab856e0fb889349572ec028d89a" +} + +build_file: "python-bigquery/.kokoro/build.sh" + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "precise-truck-742" +} diff --git a/.kokoro/presubmit-instance/linting-typing.cfg b/.kokoro/presubmit-instance/linting-typing.cfg new file mode 100644 index 000000000..36a4c2888 --- /dev/null +++ b/.kokoro/presubmit-instance/linting-typing.cfg @@ -0,0 +1,8 @@ +# proto-file: //devtools/kokoro/config/proto/build.proto +# proto-message: BuildConfig + +# Only run these nox sessions. +env_vars: { + key: "NOX_SESSION" + value: "lint lint_setup_py blacken mypy mypy_samples pytype" +} diff --git a/.kokoro/presubmit-instance/prerelease-deps.cfg b/.kokoro/presubmit-instance/prerelease-deps.cfg new file mode 100644 index 000000000..15c83a40a --- /dev/null +++ b/.kokoro/presubmit-instance/prerelease-deps.cfg @@ -0,0 +1,8 @@ +# proto-file: //devtools/kokoro/config/proto/build.proto +# proto-message: BuildConfig + +# Only run this nox session. +env_vars: { + key: "NOX_SESSION" + value: "prerelease_deps" +} diff --git a/.kokoro/presubmit-instance/presubmit.cfg b/.kokoro/presubmit-instance/presubmit.cfg new file mode 100644 index 000000000..1f405bf1a --- /dev/null +++ b/.kokoro/presubmit-instance/presubmit.cfg @@ -0,0 +1,8 @@ +# proto-file: //devtools/kokoro/config/proto/build.proto +# proto-message: BuildConfig + +# Disable system tests. +env_vars: { + key: "NOX_SESSION" + value: "unit_noextras unit cover docs docfx" +} diff --git a/.kokoro/presubmit-instance/snippets-3.12.cfg b/.kokoro/presubmit-instance/snippets-3.12.cfg new file mode 100644 index 000000000..1df538e75 --- /dev/null +++ b/.kokoro/presubmit-instance/snippets-3.12.cfg @@ -0,0 +1,8 @@ +# proto-file: //devtools/kokoro/config/proto/build.proto +# proto-message: BuildConfig + +# Only run this nox session. +env_vars: { + key: "NOX_SESSION" + value: "snippets-3.12" +} diff --git a/.kokoro/presubmit-instance/snippets-3.8.cfg b/.kokoro/presubmit-instance/snippets-3.8.cfg new file mode 100644 index 000000000..f65464ef8 --- /dev/null +++ b/.kokoro/presubmit-instance/snippets-3.8.cfg @@ -0,0 +1,8 @@ +# proto-file: //devtools/kokoro/config/proto/build.proto +# proto-message: BuildConfig + +# Only run this nox session. +env_vars: { + key: "NOX_SESSION" + value: "snippets-3.8" +} diff --git a/.kokoro/presubmit-instance/system-3.12.cfg b/.kokoro/presubmit-instance/system-3.12.cfg new file mode 100644 index 000000000..cc2495acd --- /dev/null +++ b/.kokoro/presubmit-instance/system-3.12.cfg @@ -0,0 +1,8 @@ +# proto-file: //devtools/kokoro/config/proto/build.proto +# proto-message: BuildConfig + +# Only run this nox session. +env_vars: { + key: "NOX_SESSION" + value: "system-3.12" +} diff --git a/.kokoro/presubmit-instance/system-3.8.cfg b/.kokoro/presubmit-instance/system-3.8.cfg new file mode 100644 index 000000000..7320238f1 --- /dev/null +++ b/.kokoro/presubmit-instance/system-3.8.cfg @@ -0,0 +1,8 @@ +# proto-file: //devtools/kokoro/config/proto/build.proto +# proto-message: BuildConfig + +# Only run this nox session. +env_vars: { + key: "NOX_SESSION" + value: "system-3.8" +} \ No newline at end of file diff --git a/samples/tests/test_query_external_sheets_permanent_table.py b/samples/tests/test_query_external_sheets_permanent_table.py index 1a4c21330..3099d3b5d 100644 --- a/samples/tests/test_query_external_sheets_permanent_table.py +++ b/samples/tests/test_query_external_sheets_permanent_table.py @@ -12,14 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -import typing +import pytest from .. import query_external_sheets_permanent_table -if typing.TYPE_CHECKING: - import pytest - +@pytest.mark.skip(reason="temporary until drive ADC auth is fixed") def test_query_external_sheets_permanent_table( capsys: "pytest.CaptureFixture[str]", dataset_id: str ) -> None: diff --git a/samples/tests/test_query_external_sheets_temporary_table.py b/samples/tests/test_query_external_sheets_temporary_table.py index 2ada20566..082402702 100644 --- a/samples/tests/test_query_external_sheets_temporary_table.py +++ b/samples/tests/test_query_external_sheets_temporary_table.py @@ -12,14 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -import typing +import pytest from .. import query_external_sheets_temporary_table -if typing.TYPE_CHECKING: - import pytest - +@pytest.mark.skip(reason="temporary until drive ADC auth is fixed") def test_query_external_sheets_temporary_table( capsys: "pytest.CaptureFixture[str]", ) -> None: