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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

90 lines
2.3 KiB
YAML
Raw Normal View History

2021-09-06 15:07:53 +03:00
name: Test MinGW
on:
push:
2023-10-15 20:46:25 +03:00
branches:
- "**"
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
workflow_dispatch:
2021-09-06 15:07:53 +03:00
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2021-09-06 15:07:53 +03:00
jobs:
build:
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
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-cffi \
mingw-w64-x86_64-python3-numpy \
mingw-w64-x86_64-python3-olefile \
mingw-w64-x86_64-python3-pip \
mingw-w64-x86_64-python3-setuptools \
mingw-w64-x86_64-python-pyqt6
2021-10-18 16:06:07 +03:00
python3 -m pip install pyroma pytest pytest-cov pytest-timeout
2021-09-06 15:07:53 +03:00
pushd depends && ./install_extra_test_images.sh && popd
- name: Build Pillow
run: SETUPTOOLS_USE_DISTUTILS="stdlib" CFLAGS="-coverage" python3 -m pip install .
2021-09-06 15:07:53 +03:00
- name: Test Pillow
run: |
python3 selftest.py --installed
python3 -c "from PIL import Image"
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
- name: Upload coverage
2024-02-03 15:43:04 +03:00
uses: codecov/codecov-action@v3.1.5
with:
file: ./coverage.xml
flags: GHA_Windows
2023-06-23 14:52:00 +03:00
name: "MSYS2 MinGW"