97
97
- [macos-12, macosx_*]
98
98
- [windows-2022, win_amd64]
99
99
# TODO: support PyPy?
100
- # TODO: Enable Python 3.12 wheels when numpy releases a version that supports Python 3.12
101
- python : [["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"]]#, ["cp312", "3.12"]]
100
+ python : [["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]]
102
101
env :
103
102
IS_PUSH : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
104
103
IS_SCHEDULE_DISPATCH : ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
@@ -150,8 +149,10 @@ jobs:
150
149
uses : mamba-org/setup-micromamba@v1
151
150
with :
152
151
environment-name : wheel-env
152
+ # Use a fixed Python, since we might have an unreleased Python not
153
+ # yet present on conda-forge
153
154
create-args : >-
154
- python=${{ matrix.python[1] }}
155
+ python=3.11
155
156
anaconda-client
156
157
wheel
157
158
cache-downloads : true
@@ -167,12 +168,13 @@ jobs:
167
168
shell : pwsh
168
169
run : |
169
170
$TST_CMD = @"
170
- python -m pip install pytz six numpy python-dateutil tzdata>=2022.1 hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17;
171
- python -m pip install --find-links= pandas\wheelhouse --no-index pandas ;
171
+ python -m pip install hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17;
172
+ python -m pip install `$(Get-Item pandas\wheelhouse\*.whl) ;
172
173
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`\"\"])`';
173
174
"@
174
- docker pull python:${{ matrix.python[1] }}-windowsservercore
175
- docker run --env PANDAS_CI='1' -v ${PWD}:C:\pandas python:${{ matrix.python[1] }}-windowsservercore powershell -Command $TST_CMD
175
+ # add rc to the end of the image name if the Python version is unreleased
176
+ docker pull python:${{ matrix.python[1] == '3.12' && '3.12-rc' || format('{0}-windowsservercore', matrix.python[1]) }}
177
+ 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
176
178
177
179
- uses : actions/upload-artifact@v3
178
180
with :
0 commit comments