Pillow/.github/workflows/test-cygwin.yml

86 lines
2.3 KiB
YAML
Raw Normal View History

name: Test Cygwin
on: [push, pull_request, workflow_dispatch]
jobs:
build:
2022-02-02 06:44:16 +03:00
runs-on: windows-latest
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 }}
steps:
- name: Fix line endings
run: |
git config --global core.autocrlf input
- name: Checkout Pillow
uses: actions/checkout@v2
- name: Install Cygwin
uses: cygwin/cygwin-install-action@v1
with:
platform: ${{ matrix.architecture }}
packages: >
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
libxcb-xinerama0 qt5-devel-tools xorg-server-extra zlib-devel
- name: Build system information
run: |
bash.exe -c "python3 .github/workflows/system-info.py"
2022-02-02 07:14:31 +03:00
- name: Install dependencies
run: |
2022-02-02 07:14:31 +03:00
bash.exe .ci/install.sh
2022-02-02 07:14:31 +03:00
- name: Build
run: |
2022-02-02 07:14:31 +03:00
bash.exe .ci/build_cygwin.sh
2022-02-02 07:14:31 +03:00
- name: Test
run: |
bash.exe xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
2022-02-02 07:09:49 +03:00
- name: Prepare to upload errors
if: failure()
run: |
mkdir -p Tests/errors
- name: Upload errors
uses: actions/upload-artifact@v2
if: failure()
with:
name: errors
path: Tests/errors
- name: After success
run: |
bash.exe .ci/after_success.sh
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
flags: GHA_Cygwin
name: Cygwin Python 3.${{ matrix.python-minor-version }} ${{ matrix.architecture }}
2022-02-02 07:26:38 +03:00
success:
needs: build
runs-on: ubuntu-latest
name: Cygwin Test Successful
steps:
- name: Success
run: echo Cygwin Test Successful