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:
|
|
|
|
runs-on: windows-2019
|
|
|
|
name: Cygwin Python 3.8
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Pillow
|
|
|
|
uses: actions/checkout@v2
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2021-12-10 16:52:46 +03:00
|
|
|
- name: Set up Cygwin
|
|
|
|
uses: egor-tensin/setup-cygwin@v3
|
|
|
|
with:
|
|
|
|
platform: x64
|
|
|
|
packages: >
|
2021-12-11 03:08:28 +03:00
|
|
|
libfreetype-devel libimagequant-devel libjpeg-devel
|
|
|
|
liblcms2-devel libopenjp2-devel libraqm-devel
|
|
|
|
libtiff-devel libwebp-devel libxcb-devel netpbm
|
|
|
|
ImageMagick jpeg xorg-server-extra xorg-server-common
|
|
|
|
xinit python38-setuptools python38-devel python38-tkinter
|
|
|
|
python38-wheel python38-pip python38-olefile
|
|
|
|
python38-numpy python38-pytest python38-sphinx
|
|
|
|
python38-packaging python38-cffi
|
2021-12-11 03:57:44 +03:00
|
|
|
libfribidi-devel zlib-devel libX11-xcb-devel tcl-tk-devel
|
2021-12-10 16:52:46 +03:00
|
|
|
install-dir: 'C:\tools\cygwin'
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2021-12-10 16:52:46 +03:00
|
|
|
- name: Clean up path
|
|
|
|
uses: egor-tensin/cleanup-path@v2
|
|
|
|
with:
|
|
|
|
dirs: 'C:\tools\cygwin\bin;C:\tools\cygwin\lib\lapack'
|
2021-12-11 16:26:24 +03:00
|
|
|
|
|
|
|
- name: Build system information
|
|
|
|
run: C:\tools\cygwin\bin\python3.8 .github/workflows/system-info.py
|
|
|
|
|
|
|
|
- name: Ensure Python dependencies are installed
|
2021-12-11 03:08:28 +03:00
|
|
|
run: |
|
2021-12-11 03:57:44 +03:00
|
|
|
C:\tools\cygwin\bin\python3.8 -m pip install pip wheel setuptools
|
|
|
|
C:\tools\cygwin\bin\python3.8 -m pip install -r requirements.txt
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2021-12-10 16:52:46 +03:00
|
|
|
- name: Build Pillow
|
|
|
|
run: |
|
2021-12-11 03:57:44 +03:00
|
|
|
C:\tools\cygwin\bin\python3.8 setup.py bdist_wheel
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2021-12-10 16:52:46 +03:00
|
|
|
- name: Install Pillow
|
|
|
|
run: |
|
2021-12-11 05:20:47 +03:00
|
|
|
C:\tools\cygwin\bin\dash -c '/usr/bin/python3.8 -m pip install dist/*.whl'
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2021-12-11 05:53:43 +03:00
|
|
|
- name: Check Pillow configuration
|
2021-12-10 16:52:46 +03:00
|
|
|
run: |
|
2021-12-11 03:57:44 +03:00
|
|
|
C:\tools\cygwin\bin\python3.8 selftest.py
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2021-12-11 05:53:43 +03:00
|
|
|
- name: Test Pillow
|
|
|
|
run: |
|
2021-12-11 03:57:44 +03:00
|
|
|
C:\tools\cygwin\bin\xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
|
2021-12-11 16:26:24 +03:00
|
|
|
|
|
|
|
- name: After success
|
|
|
|
run: |
|
|
|
|
C:\tools\cygwin\bin\dash .ci/after_success.sh
|
|
|
|
|
|
|
|
- name: Upload coverage
|
|
|
|
run: |
|
|
|
|
C:\tools\cygwin\bin\bash -c 'bash <(curl -s https://codecov.io/bash) -F'
|