mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
Explicitly use cmd shell, as GHA changed the default to powershell
This commit is contained in:
parent
84fed4d213
commit
3443c36795
18
.github/workflows/test-windows.yml
vendored
18
.github/workflows/test-windows.yml
vendored
|
@ -58,6 +58,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
|
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
|
||||||
pip install codecov
|
pip install codecov
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Fetch dependencies
|
- name: Fetch dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -96,6 +97,7 @@ jobs:
|
||||||
copy /Y /B j*.h %INCLIB%
|
copy /Y /B j*.h %INCLIB%
|
||||||
copy /Y /B *.lib %INCLIB%
|
copy /Y /B *.lib %INCLIB%
|
||||||
copy /Y /B *.exe %INCLIB%
|
copy /Y /B *.exe %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build dependencies / libjpeg-turbo
|
- name: Build dependencies / libjpeg-turbo
|
||||||
run: |
|
run: |
|
||||||
|
@ -114,6 +116,7 @@ jobs:
|
||||||
copy /Y /B jpeg-static.lib %INCLIB%\libjpeg.lib
|
copy /Y /B jpeg-static.lib %INCLIB%\libjpeg.lib
|
||||||
copy /Y /B cjpeg-static.exe %INCLIB%\cjpeg.exe
|
copy /Y /B cjpeg-static.exe %INCLIB%\cjpeg.exe
|
||||||
copy /Y /B djpeg-static.exe %INCLIB%\djpeg.exe
|
copy /Y /B djpeg-static.exe %INCLIB%\djpeg.exe
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build dependencies / zlib
|
- name: Build dependencies / zlib
|
||||||
run: |
|
run: |
|
||||||
|
@ -128,6 +131,7 @@ jobs:
|
||||||
copy /Y /B z*.h %INCLIB%
|
copy /Y /B z*.h %INCLIB%
|
||||||
copy /Y /B *.lib %INCLIB%
|
copy /Y /B *.lib %INCLIB%
|
||||||
copy /Y /B zlib.lib %INCLIB%\z.lib
|
copy /Y /B zlib.lib %INCLIB%\z.lib
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build dependencies / LibTIFF
|
- name: Build dependencies / LibTIFF
|
||||||
run: |
|
run: |
|
||||||
|
@ -143,6 +147,7 @@ jobs:
|
||||||
copy /Y /B libtiff\tiff*.h %INCLIB%
|
copy /Y /B libtiff\tiff*.h %INCLIB%
|
||||||
copy /Y /B libtiff\*.dll %INCLIB%
|
copy /Y /B libtiff\*.dll %INCLIB%
|
||||||
copy /Y /B libtiff\*.lib %INCLIB%
|
copy /Y /B libtiff\*.lib %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build dependencies / WebP
|
- name: Build dependencies / WebP
|
||||||
run: |
|
run: |
|
||||||
|
@ -157,6 +162,7 @@ jobs:
|
||||||
mkdir %INCLIB%\webp
|
mkdir %INCLIB%\webp
|
||||||
copy /Y /B src\webp\*.h %INCLIB%\webp
|
copy /Y /B src\webp\*.h %INCLIB%\webp
|
||||||
copy /Y /B output\release-static\${{ matrix.architecture }}\lib\* %INCLIB%
|
copy /Y /B output\release-static\${{ matrix.architecture }}\lib\* %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build dependencies / FreeType
|
- name: Build dependencies / FreeType
|
||||||
run: |
|
run: |
|
||||||
|
@ -176,6 +182,7 @@ jobs:
|
||||||
%MSBUILD% builds\windows\vc2010\freetype.sln /t:Build /p:Configuration="Release Static" /p:Platform=${{ matrix.platform-msbuild }} /m
|
%MSBUILD% builds\windows\vc2010\freetype.sln /t:Build /p:Configuration="Release Static" /p:Platform=${{ matrix.platform-msbuild }} /m
|
||||||
xcopy /Y /E /Q include %INCLIB%
|
xcopy /Y /E /Q include %INCLIB%
|
||||||
copy /Y /B "objs\${{ matrix.platform-msbuild }}\Release Static\freetype.lib" %INCLIB%
|
copy /Y /B "objs\${{ matrix.platform-msbuild }}\Release Static\freetype.lib" %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build dependencies / LCMS2
|
- name: Build dependencies / LCMS2
|
||||||
run: |
|
run: |
|
||||||
|
@ -193,6 +200,7 @@ jobs:
|
||||||
%MSBUILD% Projects\VC2015\lcms2.sln /t:Clean;lcms2_static /p:Configuration="Release" /p:Platform=${{ matrix.platform-msbuild }} /m
|
%MSBUILD% Projects\VC2015\lcms2.sln /t:Clean;lcms2_static /p:Configuration="Release" /p:Platform=${{ matrix.platform-msbuild }} /m
|
||||||
xcopy /Y /E /Q include %INCLIB%
|
xcopy /Y /E /Q include %INCLIB%
|
||||||
copy /Y /B Lib\MS\*.lib %INCLIB%
|
copy /Y /B Lib\MS\*.lib %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build dependencies / OpenJPEG
|
- name: Build dependencies / OpenJPEG
|
||||||
run: |
|
run: |
|
||||||
|
@ -211,6 +219,7 @@ jobs:
|
||||||
mkdir %INCLIB%\openjpeg-2.3.1
|
mkdir %INCLIB%\openjpeg-2.3.1
|
||||||
copy /Y /B src\lib\openjp2\*.h %INCLIB%\openjpeg-2.3.1
|
copy /Y /B src\lib\openjp2\*.h %INCLIB%\openjpeg-2.3.1
|
||||||
copy /Y /B bin\*.lib %INCLIB%
|
copy /Y /B bin\*.lib %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
# GPL licensed; skip if building wheels
|
# GPL licensed; skip if building wheels
|
||||||
- name: Build dependencies / libimagequant
|
- name: Build dependencies / libimagequant
|
||||||
|
@ -233,6 +242,7 @@ jobs:
|
||||||
nmake -nologo -f Makefile
|
nmake -nologo -f Makefile
|
||||||
copy /Y /B *.h %INCLIB%
|
copy /Y /B *.h %INCLIB%
|
||||||
copy /Y /B *.lib %INCLIB%
|
copy /Y /B *.lib %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
# for Raqm
|
# for Raqm
|
||||||
- name: Build dependencies / HarfBuzz
|
- name: Build dependencies / HarfBuzz
|
||||||
|
@ -253,6 +263,7 @@ jobs:
|
||||||
nmake -nologo -f Makefile harfbuzz
|
nmake -nologo -f Makefile harfbuzz
|
||||||
copy /Y /B src\*.h %INCLIB%
|
copy /Y /B src\*.h %INCLIB%
|
||||||
copy /Y /B *.lib %INCLIB%
|
copy /Y /B *.lib %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
# for Raqm
|
# for Raqm
|
||||||
- name: Build dependencies / FriBidi
|
- name: Build dependencies / FriBidi
|
||||||
|
@ -272,6 +283,7 @@ jobs:
|
||||||
nmake -nologo -f Makefile fribidi
|
nmake -nologo -f Makefile fribidi
|
||||||
copy /Y /B lib\*.h %INCLIB%
|
copy /Y /B lib\*.h %INCLIB%
|
||||||
copy /Y /B *.lib %INCLIB%
|
copy /Y /B *.lib %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
# failing with PyPy3
|
# failing with PyPy3
|
||||||
- name: Build dependencies / Raqm
|
- name: Build dependencies / Raqm
|
||||||
|
@ -293,6 +305,7 @@ jobs:
|
||||||
nmake -nologo -f Makefile libraqm
|
nmake -nologo -f Makefile libraqm
|
||||||
copy /Y /B src\*.h %INCLIB%
|
copy /Y /B src\*.h %INCLIB%
|
||||||
copy /Y /B libraqm.dll %INCLIB%
|
copy /Y /B libraqm.dll %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build dependencies / ghostscript
|
- name: Build dependencies / ghostscript
|
||||||
run: |
|
run: |
|
||||||
|
@ -308,6 +321,7 @@ jobs:
|
||||||
nmake -nologo -f psi\msvc.mak
|
nmake -nologo -f psi\msvc.mak
|
||||||
rem Add bin to PATH variable: Copy to INCLIB, then add INCLIB to PATH in Test step.
|
rem Add bin to PATH variable: Copy to INCLIB, then add INCLIB to PATH in Test step.
|
||||||
copy /Y /B bin\* %INCLIB%
|
copy /Y /B bin\* %INCLIB%
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build Pillow
|
- name: Build Pillow
|
||||||
run: |
|
run: |
|
||||||
|
@ -323,6 +337,7 @@ jobs:
|
||||||
rem Add GhostScript and Raqm binaries (copied to INCLIB) to PATH.
|
rem Add GhostScript and Raqm binaries (copied to INCLIB) to PATH.
|
||||||
path %INCLIB%;%PATH%
|
path %INCLIB%;%PATH%
|
||||||
%PYTHON%\python.exe selftest.py --installed
|
%PYTHON%\python.exe selftest.py --installed
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Test Pillow
|
- name: Test Pillow
|
||||||
run: |
|
run: |
|
||||||
|
@ -332,9 +347,11 @@ jobs:
|
||||||
path %INCLIB%;%PATH%
|
path %INCLIB%;%PATH%
|
||||||
cd /D %GITHUB_WORKSPACE%
|
cd /D %GITHUB_WORKSPACE%
|
||||||
%PYTHON%\python.exe -m pytest -vx --cov PIL --cov-report term --cov-report xml Tests
|
%PYTHON%\python.exe -m pytest -vx --cov PIL --cov-report term --cov-report xml Tests
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
run: 'codecov --file "%GITHUB_WORKSPACE%\coverage.xml" --name "%pythonLocation%"'
|
run: 'codecov --file "%GITHUB_WORKSPACE%\coverage.xml" --name "%pythonLocation%"'
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Build wheel
|
- name: Build wheel
|
||||||
id: wheel
|
id: wheel
|
||||||
|
@ -351,6 +368,7 @@ jobs:
|
||||||
set INCLUDE=%INCLIB%;%GITHUB_WORKSPACE%\depends\tcl86\include;%INCLUDE%
|
set INCLUDE=%INCLIB%;%GITHUB_WORKSPACE%\depends\tcl86\include;%INCLUDE%
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ${{ matrix.platform-vcvars }} 8.1
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ${{ matrix.platform-vcvars }} 8.1
|
||||||
%PYTHON%\python.exe setup.py bdist_wheel
|
%PYTHON%\python.exe setup.py bdist_wheel
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: "github.event_name == 'push' && !contains(matrix.python-version, 'pypy')"
|
if: "github.event_name == 'push' && !contains(matrix.python-version, 'pypy')"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user