From e9ec6c1812b3c4c0bebdfb736869c1f6a226dc71 Mon Sep 17 00:00:00 2001 From: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:46:47 +0100 Subject: [PATCH] test(gcp): Only run GCP tests when they should (#3721) GCP tests have been running in our common test suite, including on Python versions other than 3.7 (the only version which supports the GCP integration), even though we have a separate `py3.7-gcp` tox environment for these tests. The tests take a long time, so only executing in the appropriate `tox` environment should speed up CI time. Co-authored-by: Anton Pirker --- tests/integrations/gcp/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/integrations/gcp/__init__.py diff --git a/tests/integrations/gcp/__init__.py b/tests/integrations/gcp/__init__.py new file mode 100644 index 0000000000..eaf1ba89bb --- /dev/null +++ b/tests/integrations/gcp/__init__.py @@ -0,0 +1,6 @@ +import pytest +import os + + +if "gcp" not in os.environ.get("TOX_ENV_NAME", ""): + pytest.skip("GCP tests only run in GCP environment", allow_module_level=True)