Skip to content

Commit 5a22165

Browse files
test(gcp): Only run GCP tests when they should
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.
1 parent 02d0934 commit 5a22165

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integrations/gcp/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import pytest
2+
import os
3+
4+
5+
if "gcp" not in os.environ.get("TOX_ENV_NAME", ""):
6+
pytest.skip("GCP tests only run in GCP environment", allow_module_level=True)

0 commit comments

Comments
 (0)