9797 - [macos-12, macosx_*]
9898 - [windows-2022, win_amd64]
9999 # 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"]]
102101 env :
103102 IS_PUSH : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
104103 IS_SCHEDULE_DISPATCH : ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
@@ -150,8 +149,10 @@ jobs:
150149 uses : mamba-org/setup-micromamba@v1
151150 with :
152151 environment-name : wheel-env
152+ # Use a fixed Python, since we might have an unreleased Python not
153+ # yet present on conda-forge
153154 create-args : >-
154- python=${{ matrix.python[1] }}
155+ python=3.11
155156 anaconda-client
156157 wheel
157158 cache-downloads : true
@@ -167,12 +168,13 @@ jobs:
167168 shell : pwsh
168169 run : |
169170 $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) ;
172173 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`\"\"])`';
173174 "@
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
176178
177179 - uses : actions/upload-artifact@v3
178180 with :
0 commit comments