|
12 | 12 | # See the License for the specific language governing permissions and |
13 | 13 | # limitations under the License. |
14 | 14 | import logging |
| 15 | +import os |
15 | 16 | import sys |
16 | 17 | from datetime import timedelta |
17 | 18 |
|
@@ -101,7 +102,8 @@ def mysql_registry(): |
101 | 102 |
|
102 | 103 |
|
103 | 104 | @pytest.mark.skipif( |
104 | | - sys.platform == "darwin", reason="does not run on mac github actions" |
| 105 | + sys.platform == "darwin" and "GITHUB_REF" in os.environ, |
| 106 | + reason="does not run on mac github actions", |
105 | 107 | ) |
106 | 108 | @pytest.mark.parametrize( |
107 | 109 | "sql_registry", [lazy_fixture("mysql_registry"), lazy_fixture("pg_registry")], |
@@ -143,7 +145,8 @@ def test_apply_entity_success(sql_registry): |
143 | 145 |
|
144 | 146 |
|
145 | 147 | @pytest.mark.skipif( |
146 | | - sys.platform == "darwin", reason="does not run on mac github actions" |
| 148 | + sys.platform == "darwin" and "GITHUB_REF" in os.environ, |
| 149 | + reason="does not run on mac github actions", |
147 | 150 | ) |
148 | 151 | @pytest.mark.parametrize( |
149 | 152 | "sql_registry", [lazy_fixture("mysql_registry"), lazy_fixture("pg_registry")], |
@@ -217,7 +220,8 @@ def test_apply_feature_view_success(sql_registry): |
217 | 220 |
|
218 | 221 |
|
219 | 222 | @pytest.mark.skipif( |
220 | | - sys.platform == "darwin", reason="does not run on mac github actions" |
| 223 | + sys.platform == "darwin" and "GITHUB_REF" in os.environ, |
| 224 | + reason="does not run on mac github actions", |
221 | 225 | ) |
222 | 226 | @pytest.mark.parametrize( |
223 | 227 | "sql_registry", [lazy_fixture("mysql_registry"), lazy_fixture("pg_registry")], |
@@ -299,7 +303,8 @@ def location_features_from_push(inputs: pd.DataFrame) -> pd.DataFrame: |
299 | 303 |
|
300 | 304 |
|
301 | 305 | @pytest.mark.skipif( |
302 | | - sys.platform == "darwin", reason="does not run on mac github actions" |
| 306 | + sys.platform == "darwin" and "GITHUB_REF" in os.environ, |
| 307 | + reason="does not run on mac github actions", |
303 | 308 | ) |
304 | 309 | @pytest.mark.parametrize( |
305 | 310 | "sql_registry", [lazy_fixture("mysql_registry"), lazy_fixture("pg_registry")], |
@@ -421,7 +426,8 @@ def odfv1(feature_df: pd.DataFrame) -> pd.DataFrame: |
421 | 426 |
|
422 | 427 |
|
423 | 428 | @pytest.mark.skipif( |
424 | | - sys.platform == "darwin", reason="does not run on mac github actions" |
| 429 | + sys.platform == "darwin" and "GITHUB_REF" in os.environ, |
| 430 | + reason="does not run on mac github actions", |
425 | 431 | ) |
426 | 432 | @pytest.mark.integration |
427 | 433 | @pytest.mark.parametrize( |
|
0 commit comments