mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-04 11:53:32 +03:00
CI: Incorporate suggestions from PR.
Upload coverage information, add Cygwin to the list of systems with CI, space out entries.
This commit is contained in:
parent
1daaf9273c
commit
9ec4034bff
28
.github/workflows/test-cygwin.yml
vendored
28
.github/workflows/test-cygwin.yml
vendored
|
@ -1,12 +1,6 @@
|
||||||
name: Test Cygwin
|
name: Test Cygwin
|
||||||
|
|
||||||
on:
|
on: [push, pull_request, workflow_dispatch]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -16,6 +10,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Pillow
|
- name: Checkout Pillow
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Cygwin
|
- name: Set up Cygwin
|
||||||
uses: egor-tensin/setup-cygwin@v3
|
uses: egor-tensin/setup-cygwin@v3
|
||||||
with:
|
with:
|
||||||
|
@ -31,23 +26,40 @@ jobs:
|
||||||
python38-packaging python38-cffi
|
python38-packaging python38-cffi
|
||||||
libfribidi-devel zlib-devel libX11-xcb-devel tcl-tk-devel
|
libfribidi-devel zlib-devel libX11-xcb-devel tcl-tk-devel
|
||||||
install-dir: 'C:\tools\cygwin'
|
install-dir: 'C:\tools\cygwin'
|
||||||
|
|
||||||
- name: Clean up path
|
- name: Clean up path
|
||||||
uses: egor-tensin/cleanup-path@v2
|
uses: egor-tensin/cleanup-path@v2
|
||||||
with:
|
with:
|
||||||
dirs: 'C:\tools\cygwin\bin;C:\tools\cygwin\lib\lapack'
|
dirs: 'C:\tools\cygwin\bin;C:\tools\cygwin\lib\lapack'
|
||||||
- name: Ensure python dependencies installed
|
|
||||||
|
- name: Build system information
|
||||||
|
run: C:\tools\cygwin\bin\python3.8 .github/workflows/system-info.py
|
||||||
|
|
||||||
|
- name: Ensure Python dependencies are installed
|
||||||
run: |
|
run: |
|
||||||
C:\tools\cygwin\bin\python3.8 -m pip install pip wheel setuptools
|
C:\tools\cygwin\bin\python3.8 -m pip install pip wheel setuptools
|
||||||
C:\tools\cygwin\bin\python3.8 -m pip install -r requirements.txt
|
C:\tools\cygwin\bin\python3.8 -m pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Build Pillow
|
- name: Build Pillow
|
||||||
run: |
|
run: |
|
||||||
C:\tools\cygwin\bin\python3.8 setup.py bdist_wheel
|
C:\tools\cygwin\bin\python3.8 setup.py bdist_wheel
|
||||||
|
|
||||||
- name: Install Pillow
|
- name: Install Pillow
|
||||||
run: |
|
run: |
|
||||||
C:\tools\cygwin\bin\dash -c '/usr/bin/python3.8 -m pip install dist/*.whl'
|
C:\tools\cygwin\bin\dash -c '/usr/bin/python3.8 -m pip install dist/*.whl'
|
||||||
|
|
||||||
- name: Check Pillow configuration
|
- name: Check Pillow configuration
|
||||||
run: |
|
run: |
|
||||||
C:\tools\cygwin\bin\python3.8 selftest.py
|
C:\tools\cygwin\bin\python3.8 selftest.py
|
||||||
|
|
||||||
- name: Test Pillow
|
- name: Test Pillow
|
||||||
run: |
|
run: |
|
||||||
C:\tools\cygwin\bin\xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
|
C:\tools\cygwin\bin\xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
|
||||||
|
|
||||||
|
- name: After success
|
||||||
|
run: |
|
||||||
|
C:\tools\cygwin\bin\dash .ci/after_success.sh
|
||||||
|
|
||||||
|
- name: Upload coverage
|
||||||
|
run: |
|
||||||
|
C:\tools\cygwin\bin\bash -c 'bash <(curl -s https://codecov.io/bash) -F'
|
||||||
|
|
|
@ -460,6 +460,8 @@ These platforms are built and tested for every change.
|
||||||
+----------------------------------+----------------------------+---------------------+
|
+----------------------------------+----------------------------+---------------------+
|
||||||
| CentOS Stream 8 | 3.9 | x86-64 |
|
| CentOS Stream 8 | 3.9 | x86-64 |
|
||||||
+----------------------------------+----------------------------+---------------------+
|
+----------------------------------+----------------------------+---------------------+
|
||||||
|
| Cygwin | 3.8 | x86-64 |
|
||||||
|
+----------------------------------+----------------------------+---------------------+
|
||||||
| Debian 10 Buster | 3.7 | x86 |
|
| Debian 10 Buster | 3.7 | x86 |
|
||||||
+----------------------------------+----------------------------+---------------------+
|
+----------------------------------+----------------------------+---------------------+
|
||||||
| Fedora 34 | 3.9 | x86-64 |
|
| Fedora 34 | 3.9 | x86-64 |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user