Skip to content

Commit e9ec6c1

Browse files
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 <[email protected]>
1 parent aa6e8fd commit e9ec6c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integrations/gcp/__init__.py

+6
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)