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

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

116 lines
2.5 KiB
YAML
Raw Normal View History

2023-01-13 05:31:17 +03:00
name: Test MSYS2
2021-09-06 15:07:53 +03:00
on:
push:
2024-11-30 13:12:34 +03:00
branches:
- "**"
paths-ignore:
- ".github/workflows/docs.yml"
2024-11-30 13:12:34 +03:00
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
2024-11-30 13:12:34 +03:00
- "wheels/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
2024-11-30 13:12:34 +03:00
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
2024-11-30 13:12:34 +03:00
- "wheels/**"
workflow_dispatch:
2021-09-06 15:07:53 +03:00
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2024-11-30 13:12:34 +03:00
env:
COVERAGE_CORE: sysmon
2021-09-06 15:07:53 +03:00
jobs:
build:
runs-on: windows-latest
2023-01-13 05:31:17 +03:00
strategy:
fail-fast: false
matrix:
include:
2023-02-02 20:30:30 +03:00
# skip to save CI time:
# see https://github.com/python-pillow/Pillow/pull/6888#issuecomment-1400392821
# - msystem: "UCRT64"
2023-01-13 05:31:17 +03:00
- msystem: "CLANG64"
- msystem: "MINGW64"
2021-09-06 15:07:53 +03:00
defaults:
run:
shell: bash.exe --login -eo pipefail "{0}"
env:
2023-01-13 05:31:17 +03:00
MSYSTEM: ${{ matrix.msystem }}
2021-09-06 15:07:53 +03:00
CHERE_INVOKING: 1
timeout-minutes: 30
2023-01-13 05:31:17 +03:00
name: MSYS2 ${{ matrix.msystem }}
2021-09-06 15:07:53 +03:00
steps:
- name: Checkout Pillow
2024-11-30 13:12:34 +03:00
uses: actions/checkout@v4
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: |
2023-02-02 20:36:19 +03:00
pacman -S --noconfirm \
2023-02-12 03:18:03 +03:00
make \
2023-02-02 20:36:19 +03:00
pactoys \
subversion
pacboy -S --noconfirm \
freetype:p \
gcc:p \
ghostscript:p \
lcms2:p \
libimagequant:p \
libjpeg-turbo:p \
libraqm:p \
libtiff:p \
libwebp:p \
openjpeg2:p \
python3-numpy:p \
python3-olefile:p \
python3-pip:p \
2023-02-02 20:36:19 +03:00
python-pyqt6:p
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
2024-11-30 13:12:34 +03:00
run: .ci/build.sh
2021-09-06 15:07:53 +03:00
- name: Test Pillow
2023-02-12 03:18:03 +03:00
run: .ci/test.sh
- name: After success
run: .ci/after_success.sh
2021-09-06 15:07:53 +03:00
- name: Upload coverage
2024-11-30 13:12:34 +03:00
uses: codecov/codecov-action@v5
with:
2024-11-30 13:12:34 +03:00
files: ./coverage.xml
flags: GHA_Windows
2023-02-12 03:18:03 +03:00
name: MSYS2 ${{ matrix.msystem }}
2023-06-25 12:05:01 +03:00
success:
permissions:
contents: none
needs: build
runs-on: ubuntu-latest
name: MSYS2 Test Successful
steps:
- name: Success
run: echo MSYS2 Test Successful