simplify MSYS2 testing on GHA

This commit is contained in:
nulano 2023-02-12 00:18:03 +00:00
parent 286db61d2e
commit b85385407a
No known key found for this signature in database
GPG Key ID: B650CDF63B705766

View File

@ -51,6 +51,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
pacman -S --noconfirm \ pacman -S --noconfirm \
make \
pactoys \ pactoys \
subversion subversion
@ -77,17 +78,17 @@ jobs:
pushd depends && ./install_extra_test_images.sh && popd pushd depends && ./install_extra_test_images.sh && popd
- name: Build Pillow - name: Build Pillow
run: SETUPTOOLS_USE_DISTUTILS="stdlib" CFLAGS="-coverage" python3 -m pip install . run: SETUPTOOLS_USE_DISTUTILS="stdlib" .ci/build.sh
- name: Test Pillow - name: Test Pillow
run: | run: .ci/test.sh
python3 selftest.py --installed
python3 -c "from PIL import Image" - name: After success
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests run: .ci/after_success.sh
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
with: with:
file: ./coverage.xml file: ./coverage.xml
flags: GHA_Windows flags: GHA_Windows
name: "MSYS2 MinGW" name: MSYS2 ${{ matrix.msystem }}