@@ -71,11 +71,21 @@ jobs:
71
71
72
72
env :
73
73
CIBW_BUILD : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
74
-
75
- # Used to test the built wheels
76
- - uses : actions/setup-python@v4
74
+
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
82
+ # Really doesn't matter what version we upload with
83
+ # just the version we test with
78
84
python-version : ${{ matrix.python[1] }}
85
+ activate-environment : test
86
+ channels : conda-forge, anaconda
87
+ channel-priority : true
88
+ mamba-version : " *"
79
89
80
90
- name : Test wheels (Windows 64-bit only)
81
91
if : ${{ matrix.buildplat[1] == 'win_amd64' }}
@@ -88,26 +98,15 @@ jobs:
88
98
name : ${{ matrix.python[0] }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
89
99
path : ./wheelhouse/*.whl
90
100
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
101
104
102
- name : Install anaconda client
105
103
if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
104
+ shell : bash -el {0}
106
105
run : conda install -q -y anaconda-client
107
106
108
107
109
108
- name : Upload wheels
110
- if : success()
109
+ if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
111
110
shell : bash -el {0}
112
111
env :
113
112
PANDAS_STAGING_UPLOAD_TOKEN : ${{ secrets.PANDAS_STAGING_UPLOAD_TOKEN }}
@@ -180,11 +179,12 @@ jobs:
180
179
181
180
- name : Install anaconda client
182
181
if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
182
+ shell : bash -el {0}
183
183
run : |
184
184
conda install -q -y anaconda-client
185
185
186
186
- name : Upload sdist
187
- if : success()
187
+ if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
188
188
shell : bash -el {0}
189
189
env :
190
190
PANDAS_STAGING_UPLOAD_TOKEN : ${{ secrets.PANDAS_STAGING_UPLOAD_TOKEN }}
0 commit comments