82
82
CIBW_ARCHS_MACOS : x86_64 universal2
83
83
CIBW_BUILD_VERBOSITY : 3
84
84
85
- # Used to push the built wheels
85
+ # Used to test the built wheels
86
86
- uses : actions/setup-python@v3
87
87
with :
88
88
python-version : ${{ matrix.python[1] }}
98
98
name : ${{ matrix.python[0] }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
99
99
path : ./wheelhouse/*.whl
100
100
101
+ # Used to push the built wheels
102
+ # TODO: once Python 3.11 is available on conda, de-dup with
103
+ # setup python above
104
+ - uses : conda-incubator/setup-miniconda@v2
105
+ with :
106
+ auto-update-conda : true
107
+ # Really doesn't matter what version we upload with
108
+ # just the version we test with
109
+ python-version : ' 3.8'
110
+ channels : conda-forge
111
+ channel-priority : true
112
+ mamba-version : " *"
113
+
114
+ - name : Install anaconda client
115
+ if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
116
+ run : conda install -q -y anaconda-client
117
+
118
+
101
119
- name : Upload wheels
102
120
if : success()
103
121
shell : bash
@@ -136,16 +154,24 @@ jobs:
136
154
# A shallow clone can work when the following issue is resolved:
137
155
# https://github.com/actions/checkout/issues/338
138
156
fetch-depth : 0
139
- # Used to push the built wheels
140
- - uses : actions/setup-python@v3
157
+
158
+ # Used to push the built sdist
159
+ - uses : conda-incubator/setup-miniconda@v2
141
160
with :
142
- # Build sdist on lowest supported Python
161
+ auto-update-conda : true
162
+ # Really doesn't matter what version we upload with
163
+ # just the version we test with
143
164
python-version : ' 3.8'
165
+ channels : conda-forge
166
+ channel-priority : true
167
+ mamba-version : " *"
168
+
144
169
- name : Build sdist
145
170
run : |
146
171
pip install build
147
172
python -m build --sdist
148
173
- name : Test the sdist
174
+ shell : bash -el {0}
149
175
run : |
150
176
# TODO: Don't run test suite, and instead build wheels from sdist
151
177
# by splitting the wheel builders into a two stage job
@@ -162,6 +188,11 @@ jobs:
162
188
name : sdist
163
189
path : ./dist/*
164
190
191
+ - name : Install anaconda client
192
+ if : ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
193
+ run : |
194
+ conda install -q -y anaconda-client
195
+
165
196
- name : Upload sdist
166
197
if : success()
167
198
shell : bash
0 commit comments