9494 buildplat :
9595 - [ubuntu-22.04, manylinux_x86_64]
9696 - [ubuntu-22.04, musllinux_x86_64]
97- - [macos-12, macosx_*]
97+ - [macos-12, macosx_x86_64]
98+ # Note: M1 images on Github Actions start from macOS 14
99+ - [macos-14, macosx_arm64]
98100 - [windows-2022, win_amd64]
99101 # TODO: support PyPy?
100102 python : [["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]]
@@ -128,7 +130,7 @@ jobs:
128130 # Python version used to build sdist doesn't matter
129131 # wheel will be built from sdist with the correct version
130132 - name : Unzip sdist (macOS)
131- if : ${{ matrix.buildplat[1] == 'macosx_*' }}
133+ if : ${{ startsWith( matrix.buildplat[1], 'macosx') }}
132134 run : |
133135 tar -xzf ./dist/${{ env.sdist_name }} -C ./dist
134136
@@ -139,18 +141,18 @@ jobs:
139141
140142 - name : Build normal wheels
141143 if : ${{ (env.IS_SCHEDULE_DISPATCH != 'true' || env.IS_PUSH == 'true') }}
142- 144+ 143145 with :
144- package-dir : ./dist/${{ matrix.buildplat[1] == 'macosx_*' && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
146+ package-dir : ./dist/${{ startsWith( matrix.buildplat[1], 'macosx') && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
145147 env :
146148 CIBW_PRERELEASE_PYTHONS : True
147149 CIBW_BUILD : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
148150
149151 - name : Build nightly wheels (with NumPy pre-release)
150152 if : ${{ (env.IS_SCHEDULE_DISPATCH == 'true' && env.IS_PUSH != 'true') }}
151- 153+ 152154 with :
153- package-dir : ./dist/${{ matrix.buildplat[1] == 'macosx_*' && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
155+ package-dir : ./dist/${{ startsWith( matrix.buildplat[1], 'macosx') && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
154156 env :
155157 # The nightly wheels should be build witht he NumPy 2.0 pre-releases
156158 # which requires the additional URL.
@@ -183,15 +185,15 @@ jobs:
183185 $TST_CMD = @"
184186 python -m pip install hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0;
185187 python -m pip install `$(Get-Item pandas\wheelhouse\*.whl);
186- python -c `'import pandas as pd; pd.test(extra_args=[\" `\"--no-strict-data-files`\"\", \" `\"-m not clipboard and not single_cpu and not slow and not network and not db`\" \"])`';
188+ python -c `'import pandas as pd; pd.test(extra_args=[`\"--no-strict-data-files`\", `\"-m not clipboard and not single_cpu and not slow and not network and not db`\"])`';
187189 "@
188190 # add rc to the end of the image name if the Python version is unreleased
189191 docker pull python:${{ matrix.python[1] == '3.12' && '3.12-rc' || format('{0}-windowsservercore', matrix.python[1]) }}
190192 docker run --env PANDAS_CI='1' -v ${PWD}:C:\pandas python:${{ matrix.python[1] == '3.12' && '3.12-rc' || format('{0}-windowsservercore', matrix.python[1]) }} powershell -Command $TST_CMD
191193
192194 - uses : actions/upload-artifact@v4
193195 with :
194- name : ${{ matrix.python[0] }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
196+ name : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
195197 path : ./wheelhouse/*.whl
196198
197199 - name : Upload wheels & sdist
0 commit comments