@@ -154,3 +154,76 @@ jobs:
154154 with :
155155 name : ${{ steps.wheel.outputs.dist }}
156156 path : dist\*.whl
157+
158+ msys :
159+ runs-on : windows-2019
160+
161+ strategy :
162+ fail-fast : false
163+ matrix :
164+ mingw : ["MINGW32", "MINGW64"]
165+ include :
166+ - mingw : " MINGW32"
167+ package : " mingw-w64-i686"
168+ - mingw : " MINGW64"
169+ package : " mingw-w64-x86_64"
170+
171+ defaults :
172+ run :
173+ shell : bash.exe --login -eo pipefail "{0}"
174+ env :
175+ MSYSTEM : ${{ matrix.mingw }}
176+ CHERE_INVOKING : 1
177+
178+ timeout-minutes : 30
179+ name : MSYS2 ${{ matrix.mingw }}
180+
181+ steps :
182+ - uses : actions/checkout@v2
183+
184+ - name : Set up shell
185+ run : echo ::add-path::C:\msys64\usr\bin\
186+ shell : pwsh
187+
188+ - name : Install Dependencies
189+ run : |
190+ pacman -S --noconfirm \
191+ ${{ matrix.package }}-python3-pip \
192+ ${{ matrix.package }}-python3-setuptools \
193+ ${{ matrix.package }}-python3-pytest \
194+ ${{ matrix.package }}-python3-pytest-cov \
195+ ${{ matrix.package }}-python3-cffi \
196+ ${{ matrix.package }}-python3-olefile \
197+ ${{ matrix.package }}-python3-numpy \
198+ ${{ matrix.package }}-python3-pyqt5 \
199+ ${{ matrix.package }}-python3-numpy \
200+ ${{ matrix.package }}-freetype \
201+ ${{ matrix.package }}-lcms2 \
202+ ${{ matrix.package }}-libwebp \
203+ ${{ matrix.package }}-libjpeg-turbo \
204+ ${{ matrix.package }}-openjpeg2 \
205+ ${{ matrix.package }}-libimagequant \
206+ ${{ matrix.package }}-libraqm \
207+ ${{ matrix.package }}-ghostscript \
208+ subversion
209+
210+ python3 -m pip install pyroma
211+
212+ pushd depends && ./install_extra_test_images.sh && popd
213+
214+ - name : Build Pillow
215+ run : |
216+ # libtiff is unable to open files
217+ CFLAGS="-coverage" python3 setup.py build_ext --disable-tiff install
218+
219+ - name : Test Pillow
220+ run : |
221+ python3 selftest.py --installed
222+ python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
223+
224+ - name : Upload coverage
225+ run : |
226+ python3 -m pip install codecov
227+ bash <(curl -s https://codecov.io/bash) -F GHA_Windows
228+ env :
229+ CODECOV_NAME : MSYS2 ${{ matrix.mingw }}
0 commit comments