-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
111 lines (94 loc) · 2.55 KB
/
test-msys2.yml
File metadata and controls
111 lines (94 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Test MSYS2
on:
push:
branches:
- "**"
paths-ignore: &paths-ignore
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
pull_request:
paths-ignore: *paths-ignore
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
FORCE_COLOR: 1
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
# skip to save CI time:
# see https://github.com/python-pillow/Pillow/pull/6888#issuecomment-1400392821
# - msystem: "UCRT64"
- msystem: "CLANG64"
- msystem: "MINGW64"
defaults:
run:
shell: bash.exe --login -eo pipefail "{0}"
env:
MSYSTEM: ${{ matrix.msystem }}
CHERE_INVOKING: 1
timeout-minutes: 30
name: MSYS2 ${{ matrix.msystem }}
steps:
- name: Checkout Pillow
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up shell
run: echo "C:\msys64\usr\bin\" >> $env:GITHUB_PATH
shell: pwsh
- name: Install dependencies
run: |
pacman -S --noconfirm \
make \
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 \
python-numpy:p \
python-olefile:p \
python-pip:p \
python-pyqt6:p
python3 -m pip install pyroma pytest pytest-cov pytest-timeout
pushd depends && ./install_extra_test_images.sh && popd
- name: Build Pillow
run: .ci/build.sh
- name: Test Pillow
run: .ci/test.sh
- name: After success
run: .ci/after_success.sh
- name: Upload coverage
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
files: ./coverage.xml
flags: GHA_Windows
name: MSYS2 ${{ matrix.msystem }}
success:
permissions:
contents: none
needs: build
runs-on: ubuntu-latest
name: MSYS2 Test Successful
steps:
- name: Success
run: echo MSYS2 Test Successful