Skip to content

Commit

Permalink
allow tests to run locally but not on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
achals committed Jun 10, 2022
1 parent 751b613 commit 8d939f7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions sdk/python/tests/integration/registration/test_sql_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import os
import sys
from datetime import timedelta

Expand Down Expand Up @@ -101,7 +102,8 @@ def mysql_registry():


@pytest.mark.skipif(
sys.platform == "darwin", reason="does not run on mac github actions"
sys.platform == "darwin" and "GITHUB_REF" in os.environ,
reason="does not run on mac github actions",
)
@pytest.mark.parametrize(
"sql_registry", [lazy_fixture("mysql_registry"), lazy_fixture("pg_registry")],
Expand Down Expand Up @@ -143,7 +145,8 @@ def test_apply_entity_success(sql_registry):


@pytest.mark.skipif(
sys.platform == "darwin", reason="does not run on mac github actions"
sys.platform == "darwin" and "GITHUB_REF" in os.environ,
reason="does not run on mac github actions",
)
@pytest.mark.parametrize(
"sql_registry", [lazy_fixture("mysql_registry"), lazy_fixture("pg_registry")],
Expand Down Expand Up @@ -217,7 +220,8 @@ def test_apply_feature_view_success(sql_registry):


@pytest.mark.skipif(
sys.platform == "darwin", reason="does not run on mac github actions"
sys.platform == "darwin" and "GITHUB_REF" in os.environ,
reason="does not run on mac github actions",
)
@pytest.mark.parametrize(
"sql_registry", [lazy_fixture("mysql_registry"), lazy_fixture("pg_registry")],
Expand Down Expand Up @@ -299,7 +303,8 @@ def location_features_from_push(inputs: pd.DataFrame) -> pd.DataFrame:


@pytest.mark.skipif(
sys.platform == "darwin", reason="does not run on mac github actions"
sys.platform == "darwin" and "GITHUB_REF" in os.environ,
reason="does not run on mac github actions",
)
@pytest.mark.parametrize(
"sql_registry", [lazy_fixture("mysql_registry"), lazy_fixture("pg_registry")],
Expand Down Expand Up @@ -421,7 +426,8 @@ def odfv1(feature_df: pd.DataFrame) -> pd.DataFrame:


@pytest.mark.skipif(
sys.platform == "darwin", reason="does not run on mac github actions"
sys.platform == "darwin" and "GITHUB_REF" in os.environ,
reason="does not run on mac github actions",
)
@pytest.mark.integration
@pytest.mark.parametrize(
Expand Down

0 comments on commit 8d939f7

Please sign in to comment.