Skip to content

Commit

Permalink
test(gcp): Only run GCP tests when they should (#3721)
Browse files Browse the repository at this point in the history
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 <anton.pirker@sentry.io>
  • Loading branch information
szokeasaurusrex and antonpirker authored Nov 21, 2024
1 parent aa6e8fd commit e9ec6c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integrations/gcp/__init__.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit e9ec6c1

Please sign in to comment.