add C coverage for MSYS

This commit is contained in:
nulano 2020-05-24 03:25:27 +02:00
parent 82204d54cf
commit c0f7a91dcd

View File

@ -445,20 +445,16 @@ jobs:
- name: Build Pillow - name: Build Pillow
run: | run: |
# libtiff is unable to open files # libtiff is unable to open files
python3 setup.py build_ext --disable-tiff install CFLAGS="-coverage" python3 setup.py build_ext --disable-tiff install
- name: Test Pillow - name: Test Pillow
run: | run: |
python3 selftest.py --installed python3 selftest.py --installed
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
- name: After success
run: |
.ci/after_success.sh
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v1 run: |
with: python3 -m pip install codecov
file: ./coverage.xml bash <(curl -s https://codecov.io/bash) -F GHA_Windows
flags: GHA_Windows env:
name: MSYS2 ${{ matrix.mingw }} CODECOV_NAME: MSYS2 ${{ matrix.mingw }}