diff --git a/.github/workflows/pythonbuild.yml b/.github/workflows/pythonbuild.yml index bcf1bc2636..aaec09a75d 100644 --- a/.github/workflows/pythonbuild.yml +++ b/.github/workflows/pythonbuild.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest, windows-latest, macos-latest] python-version: ["3.8", "3.9", "3.10", "3.11"] exclude: # Ignore this test because we failed to install docker-py diff --git a/tests/flytekit/unit/cli/pyflyte/test_run.py b/tests/flytekit/unit/cli/pyflyte/test_run.py index 1daaba5b5f..f7cf2f4662 100644 --- a/tests/flytekit/unit/cli/pyflyte/test_run.py +++ b/tests/flytekit/unit/cli/pyflyte/test_run.py @@ -2,6 +2,7 @@ import json import os import pathlib +import sys import tempfile import typing from datetime import datetime, timedelta @@ -295,6 +296,10 @@ def test_list_default_arguments(wf_path): (IMAGE_SPEC, "sample.yaml", ic_result_4), ], ) +@pytest.mark.skipif( + os.environ["GITHUB_ACTIONS"] == "true" and sys.platform == "darwin", + reason="Github macos-latest image does not have docker installed as per https://github.com/orgs/community/discussions/25777", +) def test_pyflyte_run_run(mock_image, image_string, leaf_configuration_file_name, final_image_config): mock_image.return_value = "cr.flyte.org/flyteorg/flytekit:py3.9-latest"