2021-12-10 16:52:46 +03:00
|
|
|
name: Test Cygwin
|
|
|
|
|
2023-03-04 16:44:56 +03:00
|
|
|
on:
|
|
|
|
push:
|
2023-10-15 20:46:25 +03:00
|
|
|
branches:
|
|
|
|
- "**"
|
2023-03-04 16:44:56 +03:00
|
|
|
paths-ignore:
|
|
|
|
- ".github/workflows/docs.yml"
|
2023-10-02 11:01:23 +03:00
|
|
|
- ".github/workflows/wheels*"
|
|
|
|
- ".gitmodules"
|
2023-03-04 16:44:56 +03:00
|
|
|
- "docs/**"
|
2023-10-02 11:01:23 +03:00
|
|
|
- "wheels/**"
|
2023-03-04 16:44:56 +03:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- ".github/workflows/docs.yml"
|
2023-10-02 11:01:23 +03:00
|
|
|
- ".github/workflows/wheels*"
|
|
|
|
- ".gitmodules"
|
2023-03-04 16:44:56 +03:00
|
|
|
- "docs/**"
|
2023-10-02 11:01:23 +03:00
|
|
|
- "wheels/**"
|
2023-03-04 16:44:56 +03:00
|
|
|
workflow_dispatch:
|
2021-12-10 16:52:46 +03:00
|
|
|
|
2022-08-26 15:48:12 +03:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-11-25 14:05:57 +03:00
|
|
|
concurrency:
|
2022-09-26 15:16:33 +03:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2024-02-20 22:42:39 +03:00
|
|
|
env:
|
|
|
|
COVERAGE_CORE: sysmon
|
|
|
|
|
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:
|
2024-07-03 09:44:45 +03:00
|
|
|
python-minor-version: [9]
|
2022-02-02 07:05:54 +03:00
|
|
|
|
2022-02-06 15:34:15 +03:00
|
|
|
timeout-minutes: 40
|
2022-02-02 07:05:54 +03:00
|
|
|
|
2022-05-05 22:21:22 +03:00
|
|
|
name: Python 3.${{ matrix.python-minor-version }}
|
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
|
2023-09-05 00:04:29 +03:00
|
|
|
uses: actions/checkout@v4
|
2024-11-03 00:29:56 +03:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2022-02-02 07:31:20 +03:00
|
|
|
- name: Install Cygwin
|
2024-03-14 15:04:49 +03:00
|
|
|
uses: cygwin/cygwin-install-action@v4
|
2021-12-10 16:52:46 +03:00
|
|
|
with:
|
|
|
|
packages: >
|
2023-01-28 17:40:11 +03:00
|
|
|
gcc-g++
|
|
|
|
ghostscript
|
2024-05-03 02:43:50 +03:00
|
|
|
git
|
2023-01-28 17:40:11 +03:00
|
|
|
ImageMagick
|
|
|
|
jpeg
|
|
|
|
libfreetype-devel
|
|
|
|
libimagequant-devel
|
|
|
|
libjpeg-devel
|
|
|
|
liblapack-devel
|
|
|
|
liblcms2-devel
|
|
|
|
libopenjp2-devel
|
|
|
|
libraqm-devel
|
|
|
|
libtiff-devel
|
|
|
|
libwebp-devel
|
|
|
|
libxcb-devel
|
|
|
|
libxcb-xinerama0
|
|
|
|
make
|
|
|
|
netpbm
|
|
|
|
perl
|
2022-04-23 15:25:58 +03:00
|
|
|
python3${{ matrix.python-minor-version }}-cython
|
2022-02-02 07:05:54 +03:00
|
|
|
python3${{ matrix.python-minor-version }}-devel
|
2024-08-19 15:55:07 +03:00
|
|
|
python3${{ matrix.python-minor-version }}-ipython
|
2022-02-02 07:05:54 +03:00
|
|
|
python3${{ matrix.python-minor-version }}-numpy
|
|
|
|
python3${{ matrix.python-minor-version }}-sip
|
2022-04-23 15:25:58 +03:00
|
|
|
python3${{ matrix.python-minor-version }}-tkinter
|
2023-01-28 17:40:25 +03:00
|
|
|
wget
|
2023-01-28 17:40:11 +03:00
|
|
|
xorg-server-extra
|
|
|
|
zlib-devel
|
2022-02-06 15:34:15 +03:00
|
|
|
|
|
|
|
- name: Add Lapack to PATH
|
2024-02-01 00:14:01 +03:00
|
|
|
uses: egor-tensin/cleanup-path@v4
|
2022-02-06 15:34:15 +03:00
|
|
|
with:
|
|
|
|
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
|
2022-05-07 07:52:28 +03:00
|
|
|
|
2023-07-14 11:25:26 +03:00
|
|
|
- name: Select Python version
|
|
|
|
run: |
|
2024-03-14 15:04:49 +03:00
|
|
|
ln -sf c:/cygwin/bin/python3.${{ matrix.python-minor-version }} c:/cygwin/bin/python3
|
2023-07-14 11:25:26 +03:00
|
|
|
|
2022-04-20 17:17:45 +03:00
|
|
|
- name: pip cache
|
2024-01-20 09:07:48 +03:00
|
|
|
uses: actions/cache@v4
|
2022-04-20 17:17:45 +03:00
|
|
|
with:
|
2022-04-21 17:26:12 +03:00
|
|
|
path: 'C:\cygwin\home\runneradmin\.cache\pip'
|
2024-03-15 12:41:15 +03:00
|
|
|
key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-${{ hashFiles('.ci/install.sh') }}
|
2022-04-20 17:17:45 +03:00
|
|
|
restore-keys: |
|
2024-03-15 12:41:15 +03:00
|
|
|
${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-
|
2023-04-15 02:41:19 +03:00
|
|
|
|
2021-12-11 16:26:24 +03:00
|
|
|
- name: Build system information
|
2022-02-02 07:31:20 +03:00
|
|
|
run: |
|
2022-05-03 03:38:12 +03:00
|
|
|
dash.exe -c "python3 .github/workflows/system-info.py"
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2022-02-02 07:14:31 +03:00
|
|
|
- name: Install dependencies
|
2021-12-11 03:08:28 +03:00
|
|
|
run: |
|
2022-02-02 07:14:31 +03:00
|
|
|
bash.exe .ci/install.sh
|
2021-12-11 16:26:24 +03:00
|
|
|
|
2022-02-02 07:14:31 +03:00
|
|
|
- name: Build
|
2022-04-29 19:57:52 +03:00
|
|
|
shell: bash.exe -eo pipefail -o igncr "{0}"
|
2022-01-07 22:34:30 +03:00
|
|
|
run: |
|
2023-05-21 07:38:05 +03:00
|
|
|
.ci/build.sh
|
2022-01-07 22:34:30 +03:00
|
|
|
|
2022-02-02 07:14:31 +03:00
|
|
|
- name: Test
|
2021-12-11 05:53:43 +03:00
|
|
|
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
|
|
|
|
2022-02-02 07:09:49 +03:00
|
|
|
- name: Prepare to upload errors
|
|
|
|
if: failure()
|
|
|
|
run: |
|
2022-02-06 15:34:15 +03:00
|
|
|
dash.exe -c "mkdir -p Tests/errors"
|
2022-02-02 07:09:49 +03:00
|
|
|
|
|
|
|
- name: Upload errors
|
2023-12-15 06:45:41 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-02-02 07:09:49 +03:00
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: errors
|
|
|
|
path: Tests/errors
|
|
|
|
|
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
|
2024-11-21 11:22:39 +03:00
|
|
|
rm C:\cygwin\bin\bash.EXE
|
2021-12-11 16:26:24 +03:00
|
|
|
|
|
|
|
- name: Upload coverage
|
2024-11-16 12:48:28 +03:00
|
|
|
uses: codecov/codecov-action@v5
|
2021-12-11 23:13:56 +03:00
|
|
|
with:
|
2024-11-16 13:44:00 +03:00
|
|
|
files: ./coverage.xml
|
2021-12-11 23:13:56 +03:00
|
|
|
flags: GHA_Cygwin
|
2022-05-05 22:21:22 +03:00
|
|
|
name: Cygwin Python 3.${{ matrix.python-minor-version }}
|
2024-05-03 01:45:39 +03:00
|
|
|
token: ${{ secrets.CODECOV_ORG_TOKEN }}
|
2021-12-18 17:55:24 +03:00
|
|
|
|
2022-02-02 07:26:38 +03:00
|
|
|
success:
|
2022-07-04 04:19:58 +03:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2022-02-02 07:26:38 +03:00
|
|
|
needs: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Cygwin Test Successful
|
|
|
|
steps:
|
|
|
|
- name: Success
|
|
|
|
run: echo Cygwin Test Successful
|