Skip to content

Commit c0f7a91

Browse files
committed
add C coverage for MSYS
1 parent 82204d5 commit c0f7a91

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/test-windows.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -445,20 +445,16 @@ jobs:
445445
- name: Build Pillow
446446
run: |
447447
# libtiff is unable to open files
448-
python3 setup.py build_ext --disable-tiff install
448+
CFLAGS="-coverage" python3 setup.py build_ext --disable-tiff install
449449
450450
- name: Test Pillow
451451
run: |
452452
python3 selftest.py --installed
453453
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
454454
455-
- name: After success
456-
run: |
457-
.ci/after_success.sh
458-
459455
- name: Upload coverage
460-
uses: codecov/codecov-action@v1
461-
with:
462-
file: ./coverage.xml
463-
flags: GHA_Windows
464-
name: MSYS2 ${{ matrix.mingw }}
456+
run: |
457+
python3 -m pip install codecov
458+
bash <(curl -s https://codecov.io/bash) -F GHA_Windows
459+
env:
460+
CODECOV_NAME: MSYS2 ${{ matrix.mingw }}

0 commit comments

Comments
 (0)