diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 34b27a51..fab38424 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,8 +17,8 @@ jobs: strategy: fail-fast: false matrix: - # Don't use macos-latest because it is arm64 - os: [ubuntu-latest, windows-latest, macos-13] + # macos-13 is intel-based, latest is arm + os: [ubuntu-latest, windows-latest, macos-13, macos-latest] python-version: ["3.10", "3.11", "3.12"] name: OS ${{ matrix.os }} - Python ${{ matrix.python-version }} diff --git a/tests/test_series.py b/tests/test_series.py index d48f0bef..f35fd20a 100644 --- a/tests/test_series.py +++ b/tests/test_series.py @@ -2429,6 +2429,15 @@ def test_astype_float(cast_arg: FloatDtypeArg, target_type: type) -> None: s.astype(cast_arg) pytest.skip("Windows does not support float128") + if ( + platform.system() == "Darwin" + and platform.processor() == "arm" + and cast_arg in ("f16", "float128") + ): + with pytest.raises(TypeError): + s.astype(cast_arg) + pytest.skip("MacOS arm does not support float128") + check(s.astype(cast_arg), pd.Series, target_type) if TYPE_CHECKING: @@ -2482,6 +2491,15 @@ def test_astype_complex(cast_arg: ComplexDtypeArg, target_type: type) -> None: s.astype(cast_arg) pytest.skip("Windows does not support complex256") + if ( + platform.system() == "Darwin" + and platform.processor() == "arm" + and cast_arg in ("c32", "complex256") + ): + with pytest.raises(TypeError): + s.astype(cast_arg) + pytest.skip("MacOS arm does not support complex256") + check(s.astype(cast_arg), pd.Series, target_type) if TYPE_CHECKING: