94
94
buildplat :
95
95
- [ubuntu-22.04, manylinux_x86_64]
96
96
- [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]
98
100
- [windows-2022, win_amd64]
99
101
# TODO: support PyPy?
100
102
python : [["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]]
@@ -128,7 +130,7 @@ jobs:
128
130
# Python version used to build sdist doesn't matter
129
131
# wheel will be built from sdist with the correct version
130
132
- name : Unzip sdist (macOS)
131
- if : ${{ matrix.buildplat[1] == 'macosx_*' }}
133
+ if : ${{ startsWith( matrix.buildplat[1], 'macosx') }}
132
134
run : |
133
135
tar -xzf ./dist/${{ env.sdist_name }} -C ./dist
134
136
@@ -139,18 +141,18 @@ jobs:
139
141
140
142
- name : Build normal wheels
141
143
if : ${{ (env.IS_SCHEDULE_DISPATCH != 'true' || env.IS_PUSH == 'true') }}
142
-
144
+
143
145
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 }}
145
147
env :
146
148
CIBW_PRERELEASE_PYTHONS : True
147
149
CIBW_BUILD : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
148
150
149
151
- name : Build nightly wheels (with NumPy pre-release)
150
152
if : ${{ (env.IS_SCHEDULE_DISPATCH == 'true' && env.IS_PUSH != 'true') }}
151
-
153
+
152
154
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 }}
154
156
env :
155
157
# The nightly wheels should be build witht he NumPy 2.0 pre-releases
156
158
# which requires the additional URL.
@@ -183,15 +185,15 @@ jobs:
183
185
$TST_CMD = @"
184
186
python -m pip install hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0;
185
187
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`\"])`';
187
189
"@
188
190
# add rc to the end of the image name if the Python version is unreleased
189
191
docker pull python:${{ matrix.python[1] == '3.12' && '3.12-rc' || format('{0}-windowsservercore', matrix.python[1]) }}
190
192
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
191
193
192
194
- uses : actions/upload-artifact@v4
193
195
with :
194
- name : ${{ matrix.python[0] }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
196
+ name : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
195
197
path : ./wheelhouse/*.whl
196
198
197
199
- name : Upload wheels & sdist
0 commit comments