@@ -72,14 +72,22 @@ jobs:
72
72
env :
73
73
CIBW_BUILD : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
74
74
75
- # Used to test the built wheels
76
- - uses : actions/setup-python@v4
75
+ # Used to test(Windows-only) and push the built wheels
76
+ # You might need to use setup-python separately
77
+ # if the new Python-dev version
78
+ # is unavailable on conda-forge.
79
+ - uses : conda-incubator/setup-miniconda@v2
77
80
with :
81
+ auto-update-conda : true
78
82
python-version : ${{ matrix.python[1] }}
83
+ activate-environment : test
84
+ channels : conda-forge, anaconda
85
+ channel-priority : true
86
+ mamba-version : " *"
79
87
80
88
- name : Test wheels (Windows 64-bit only)
81
89
if : ${{ matrix.buildplat[1] == 'win_amd64' }}
82
- shell : cmd
90
+ shell : cmd /C CALL {0}
83
91
run : |
84
92
python ci/test_wheels.py wheelhouse
85
93
@@ -88,26 +96,15 @@ jobs:
88
96
name : ${{ matrix.python[0] }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
89
97
path : ./wheelhouse/*.whl
90
98
91
- # Used to push the built wheels
92
- # TODO: once Python 3.11 is available on conda, de-dup with
93
- # setup python above
94
- - uses : conda-incubator/setup-miniconda@v2
95
- with :
96
- auto-update-conda : true
97
- # Really doesn't matter what version we upload with
98
- # just the version we test with
99
- python-version : ' 3.8'
100
- channels : conda-forge
101
- channel-priority : true
102
- mamba-version : " *"
103
99
104
100
- name : Install anaconda client
105
101
if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
102
+ shell : bash -el {0}
106
103
run : conda install -q -y anaconda-client
107
104
108
105
109
106
- name : Upload wheels
110
- if : success()
107
+ if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
111
108
shell : bash -el {0}
112
109
env :
113
110
PANDAS_STAGING_UPLOAD_TOKEN : ${{ secrets.PANDAS_STAGING_UPLOAD_TOKEN }}
@@ -180,11 +177,12 @@ jobs:
180
177
181
178
- name : Install anaconda client
182
179
if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
180
+ shell : bash -el {0}
183
181
run : |
184
182
conda install -q -y anaconda-client
185
183
186
184
- name : Upload sdist
187
- if : success()
185
+ if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
188
186
shell : bash -el {0}
189
187
env :
190
188
PANDAS_STAGING_UPLOAD_TOKEN : ${{ secrets.PANDAS_STAGING_UPLOAD_TOKEN }}
0 commit comments