2021-12-10 16:52:46 +03:00
|
|
|
name: Test Cygwin
|
|
|
|
|
2021-12-11 16:26:24 +03:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2021-12-10 16:52:46 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-02-02 06:44:16 +03:00
|
|
|
runs-on: windows-latest
|
2022-02-02 07:05:54 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
python-minor-version: [7, 8]
|
|
|
|
architecture: ["x86", "x86_64"]
|
|
|
|
|
|
|
|
timeout-minutes: 30
|
|
|
|
|
|
|
|
name: Python 3.${{ matrix.python-minor-version }} ${{ matrix.architecture }}
|
2021-12-10 16:52:46 +03:00
|
|
|
|
|
|
|
steps:
|
2022-02-02 07:31:20 +03:00
|
|
|
- name: Fix line endings
|
|
|
|
run: |
|
|
|
|
git config --global core.autocrlf input
|
|
|
|
|
2021-12-10 16:52:46 +03:00
|
|
|
- name: Checkout Pillow
|
|
|
|
uses: actions/checkout@v2
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2022-02-02 07:31:20 +03:00
|
|
|
- name: Install Cygwin
|
|
|
|
uses: cygwin/cygwin-install-action@v1
|
2021-12-10 16:52:46 +03:00
|
|
|
with:
|
2022-02-02 07:05:54 +03:00
|
|
|
platform: ${{ matrix.architecture }}
|
2021-12-10 16:52:46 +03:00
|
|
|
packages: >
|
2022-02-02 07:05:54 +03:00
|
|
|
ImageMagick python3${{ matrix.python-minor-version }}-cffi
|
|
|
|
python3${{ matrix.python-minor-version }}-devel
|
|
|
|
python3${{ matrix.python-minor-version }}-numpy
|
|
|
|
python3${{ matrix.python-minor-version }}-sip
|
|
|
|
python3${{ matrix.python-minor-version }}-tkinter ghostscript
|
|
|
|
libfreetype-devel libimagequant-devel libjpeg-devel liblcms2-devel
|
|
|
|
libopenjp2-devel libraqm-devel libtiff-devel libwebp-devel libxcb-devel
|
2022-02-02 07:31:20 +03:00
|
|
|
libxcb-xinerama0 qt5-devel-tools xorg-server-extra zlib-devel
|
2021-12-11 16:26:24 +03:00
|
|
|
|
|
|
|
- name: Build system information
|
2022-02-02 07:31:20 +03:00
|
|
|
run: |
|
|
|
|
bash.exe -c "python3 .github/workflows/system-info.py"
|
2021-12-11 16:26:24 +03:00
|
|
|
|
|
|
|
- name: Ensure Python dependencies are installed
|
2021-12-11 03:08:28 +03:00
|
|
|
run: |
|
2022-02-02 07:31:20 +03:00
|
|
|
bash.exe -c "python3 -m pip install pip wheel setuptools"
|
|
|
|
bash.exe -c "python3 -m pip install -r requirements.txt"
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2022-01-07 22:34:30 +03:00
|
|
|
- name: Download extra test images
|
|
|
|
run: |
|
2022-02-02 07:31:20 +03:00
|
|
|
bash.exe -c "cd depends; dash install_extra_test_images.sh"
|
2022-01-07 22:34:30 +03:00
|
|
|
|
2021-12-10 16:52:46 +03:00
|
|
|
- name: Build Pillow
|
|
|
|
run: |
|
2022-02-02 07:31:20 +03:00
|
|
|
bash.exe -c "python3 setup.py bdist_wheel"
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2021-12-10 16:52:46 +03:00
|
|
|
- name: Install Pillow
|
|
|
|
run: |
|
2022-02-02 07:31:20 +03:00
|
|
|
bash.exe -c "python3 -m pip install dist/*.whl"
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2021-12-11 05:53:43 +03:00
|
|
|
- name: Test Pillow
|
|
|
|
run: |
|
2022-02-02 07:31:20 +03:00
|
|
|
bash.exe xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
|
2021-12-11 16:26:24 +03:00
|
|
|
|
|
|
|
- name: After success
|
|
|
|
run: |
|
2022-02-02 07:31:20 +03:00
|
|
|
bash.exe .ci/after_success.sh
|
2021-12-11 16:26:24 +03:00
|
|
|
|
|
|
|
- name: Upload coverage
|
2021-12-11 23:17:28 +03:00
|
|
|
uses: codecov/codecov-action@v2
|
2021-12-11 23:13:56 +03:00
|
|
|
with:
|
|
|
|
file: ./coverage.xml
|
|
|
|
flags: GHA_Cygwin
|
2022-02-02 07:05:54 +03:00
|
|
|
name: Cygwin Python 3.${{ matrix.python-minor-version }} ${{ matrix.architecture }}
|
2021-12-18 17:55:24 +03:00
|
|
|
|
|
|
|
- name: After failure
|
|
|
|
if: failure()
|
|
|
|
run: |
|
|
|
|
C:\tools\cygwin\bin\uname -a
|
|
|
|
C:\tools\cygwin\bin\python3.8 -m pip list
|
|
|
|
C:\tools\cygwin\bin\python3.8 -m pip show --files Pillow
|