2021-09-06 15:07:53 +03:00
|
|
|
name: Test MinGW
|
|
|
|
|
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-09-06 15:07:53 +03:00
|
|
|
|
2022-07-04 04:19:58 +03:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-01-12 23:18:56 +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-09-06 15:07:53 +03:00
|
|
|
jobs:
|
2021-09-12 10:10:31 +03:00
|
|
|
build:
|
2022-01-30 06:40:30 +03:00
|
|
|
runs-on: windows-latest
|
2021-09-06 15:07:53 +03:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash.exe --login -eo pipefail "{0}"
|
|
|
|
env:
|
2023-06-23 14:52:00 +03:00
|
|
|
MSYSTEM: MINGW64
|
2021-09-06 15:07:53 +03:00
|
|
|
CHERE_INVOKING: 1
|
|
|
|
|
|
|
|
timeout-minutes: 30
|
2023-06-24 12:17:30 +03:00
|
|
|
name: "MinGW"
|
2021-09-06 15:07:53 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- 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-09-06 15:07:53 +03:00
|
|
|
|
|
|
|
- name: Set up shell
|
|
|
|
run: echo "C:\msys64\usr\bin\" >> $env:GITHUB_PATH
|
|
|
|
shell: pwsh
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pacman -S --noconfirm \
|
2023-06-23 14:52:00 +03:00
|
|
|
mingw-w64-x86_64-freetype \
|
|
|
|
mingw-w64-x86_64-gcc \
|
|
|
|
mingw-w64-x86_64-ghostscript \
|
|
|
|
mingw-w64-x86_64-lcms2 \
|
|
|
|
mingw-w64-x86_64-libimagequant \
|
|
|
|
mingw-w64-x86_64-libjpeg-turbo \
|
|
|
|
mingw-w64-x86_64-libraqm \
|
|
|
|
mingw-w64-x86_64-libtiff \
|
|
|
|
mingw-w64-x86_64-libwebp \
|
|
|
|
mingw-w64-x86_64-openjpeg2 \
|
|
|
|
mingw-w64-x86_64-python3-numpy \
|
|
|
|
mingw-w64-x86_64-python3-olefile \
|
2024-11-22 03:02:50 +03:00
|
|
|
mingw-w64-x86_64-python3-pip \
|
|
|
|
mingw-w64-x86_64-python-pytest \
|
|
|
|
mingw-w64-x86_64-python-pytest-cov \
|
|
|
|
mingw-w64-x86_64-python-pytest-timeout \
|
2023-06-23 14:52:00 +03:00
|
|
|
mingw-w64-x86_64-python-pyqt6
|
2023-01-12 23:18:56 +03:00
|
|
|
|
2021-09-06 15:07:53 +03:00
|
|
|
pushd depends && ./install_extra_test_images.sh && popd
|
|
|
|
|
|
|
|
- name: Build Pillow
|
2024-11-22 03:05:33 +03:00
|
|
|
run: CFLAGS="-coverage" python3 -m pip install .
|
2021-09-06 15:07:53 +03:00
|
|
|
|
|
|
|
- name: Test Pillow
|
|
|
|
run: |
|
|
|
|
python3 selftest.py --installed
|
2024-09-19 20:08:34 +03:00
|
|
|
.ci/test.sh
|
2021-09-06 15:07:53 +03:00
|
|
|
|
|
|
|
- name: Upload coverage
|
2024-11-16 12:48:28 +03:00
|
|
|
uses: codecov/codecov-action@v5
|
2022-09-24 04:33:16 +03:00
|
|
|
with:
|
2024-11-16 13:44:00 +03:00
|
|
|
files: ./coverage.xml
|
2022-09-24 04:33:16 +03:00
|
|
|
flags: GHA_Windows
|
2023-06-23 14:52:00 +03:00
|
|
|
name: "MSYS2 MinGW"
|
2024-05-03 01:45:39 +03:00
|
|
|
token: ${{ secrets.CODECOV_ORG_TOKEN }}
|