58
58
run : |
59
59
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
60
60
pip install codecov
61
+ shell : cmd
61
62
62
63
- name : Fetch dependencies
63
64
run : |
96
97
copy /Y /B j*.h %INCLIB%
97
98
copy /Y /B *.lib %INCLIB%
98
99
copy /Y /B *.exe %INCLIB%
100
+ shell : cmd
99
101
100
102
- name : Build dependencies / libjpeg-turbo
101
103
run : |
@@ -114,6 +116,7 @@ jobs:
114
116
copy /Y /B jpeg-static.lib %INCLIB%\libjpeg.lib
115
117
copy /Y /B cjpeg-static.exe %INCLIB%\cjpeg.exe
116
118
copy /Y /B djpeg-static.exe %INCLIB%\djpeg.exe
119
+ shell : cmd
117
120
118
121
- name : Build dependencies / zlib
119
122
run : |
@@ -128,6 +131,7 @@ jobs:
128
131
copy /Y /B z*.h %INCLIB%
129
132
copy /Y /B *.lib %INCLIB%
130
133
copy /Y /B zlib.lib %INCLIB%\z.lib
134
+ shell : cmd
131
135
132
136
- name : Build dependencies / LibTIFF
133
137
run : |
@@ -143,6 +147,7 @@ jobs:
143
147
copy /Y /B libtiff\tiff*.h %INCLIB%
144
148
copy /Y /B libtiff\*.dll %INCLIB%
145
149
copy /Y /B libtiff\*.lib %INCLIB%
150
+ shell : cmd
146
151
147
152
- name : Build dependencies / WebP
148
153
run : |
@@ -157,6 +162,7 @@ jobs:
157
162
mkdir %INCLIB%\webp
158
163
copy /Y /B src\webp\*.h %INCLIB%\webp
159
164
copy /Y /B output\release-static\${{ matrix.architecture }}\lib\* %INCLIB%
165
+ shell : cmd
160
166
161
167
- name : Build dependencies / FreeType
162
168
run : |
@@ -176,6 +182,7 @@ jobs:
176
182
%MSBUILD% builds\windows\vc2010\freetype.sln /t:Build /p:Configuration="Release Static" /p:Platform=${{ matrix.platform-msbuild }} /m
177
183
xcopy /Y /E /Q include %INCLIB%
178
184
copy /Y /B "objs\${{ matrix.platform-msbuild }}\Release Static\freetype.lib" %INCLIB%
185
+ shell : cmd
179
186
180
187
- name : Build dependencies / LCMS2
181
188
run : |
@@ -193,6 +200,7 @@ jobs:
193
200
%MSBUILD% Projects\VC2015\lcms2.sln /t:Clean;lcms2_static /p:Configuration="Release" /p:Platform=${{ matrix.platform-msbuild }} /m
194
201
xcopy /Y /E /Q include %INCLIB%
195
202
copy /Y /B Lib\MS\*.lib %INCLIB%
203
+ shell : cmd
196
204
197
205
- name : Build dependencies / OpenJPEG
198
206
run : |
@@ -211,6 +219,7 @@ jobs:
211
219
mkdir %INCLIB%\openjpeg-2.3.1
212
220
copy /Y /B src\lib\openjp2\*.h %INCLIB%\openjpeg-2.3.1
213
221
copy /Y /B bin\*.lib %INCLIB%
222
+ shell : cmd
214
223
215
224
# GPL licensed; skip if building wheels
216
225
- name : Build dependencies / libimagequant
@@ -233,6 +242,7 @@ jobs:
233
242
nmake -nologo -f Makefile
234
243
copy /Y /B *.h %INCLIB%
235
244
copy /Y /B *.lib %INCLIB%
245
+ shell : cmd
236
246
237
247
# for Raqm
238
248
- name : Build dependencies / HarfBuzz
@@ -253,6 +263,7 @@ jobs:
253
263
nmake -nologo -f Makefile harfbuzz
254
264
copy /Y /B src\*.h %INCLIB%
255
265
copy /Y /B *.lib %INCLIB%
266
+ shell : cmd
256
267
257
268
# for Raqm
258
269
- name : Build dependencies / FriBidi
@@ -272,6 +283,7 @@ jobs:
272
283
nmake -nologo -f Makefile fribidi
273
284
copy /Y /B lib\*.h %INCLIB%
274
285
copy /Y /B *.lib %INCLIB%
286
+ shell : cmd
275
287
276
288
# failing with PyPy3
277
289
- name : Build dependencies / Raqm
@@ -293,6 +305,7 @@ jobs:
293
305
nmake -nologo -f Makefile libraqm
294
306
copy /Y /B src\*.h %INCLIB%
295
307
copy /Y /B libraqm.dll %INCLIB%
308
+ shell : cmd
296
309
297
310
- name : Build dependencies / ghostscript
298
311
run : |
@@ -308,6 +321,7 @@ jobs:
308
321
nmake -nologo -f psi\msvc.mak
309
322
rem Add bin to PATH variable: Copy to INCLIB, then add INCLIB to PATH in Test step.
310
323
copy /Y /B bin\* %INCLIB%
324
+ shell : cmd
311
325
312
326
- name : Build Pillow
313
327
run : |
@@ -323,6 +337,7 @@ jobs:
323
337
rem Add GhostScript and Raqm binaries (copied to INCLIB) to PATH.
324
338
path %INCLIB%;%PATH%
325
339
%PYTHON%\python.exe selftest.py --installed
340
+ shell : cmd
326
341
327
342
- name : Test Pillow
328
343
run : |
@@ -332,9 +347,11 @@ jobs:
332
347
path %INCLIB%;%PATH%
333
348
cd /D %GITHUB_WORKSPACE%
334
349
%PYTHON%\python.exe -m pytest -vx --cov PIL --cov-report term --cov-report xml Tests
350
+ shell : cmd
335
351
336
352
- name : Upload coverage
337
353
run : ' codecov --file "%GITHUB_WORKSPACE%\coverage.xml" --name "%pythonLocation%"'
354
+ shell : cmd
338
355
339
356
- name : Build wheel
340
357
id : wheel
@@ -351,6 +368,7 @@ jobs:
351
368
set INCLUDE=%INCLIB%;%GITHUB_WORKSPACE%\depends\tcl86\include;%INCLUDE%
352
369
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ${{ matrix.platform-vcvars }} 8.1
353
370
%PYTHON%\python.exe setup.py bdist_wheel
371
+ shell : cmd
354
372
355
373
- uses : actions/upload-artifact@v1
356
374
if : " github.event_name == 'push' && !contains(matrix.python-version, 'pypy')"
0 commit comments