forked from python-pillow/Pillow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
196 changed files
with
4,586 additions
and
4,740 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Close stale issues | ||
|
||
on: | ||
schedule: | ||
- cron: "10 0 * * *" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
stale: | ||
if: github.repository_owner == 'python-pillow' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Check issues" | ||
uses: actions/stale@v5 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
only-labels: "Awaiting OP Action" | ||
close-issue-message: "Closing this issue as no feedback has been received." | ||
days-before-stale: 7 | ||
days-before-issue-close: 0 | ||
days-before-pr-close: -1 | ||
labels-to-remove-when-unstale: "Awaiting OP Action" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
name: Test Cygwin | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-minor-version: [7, 8, 9] | ||
|
||
timeout-minutes: 40 | ||
|
||
name: Python 3.${{ matrix.python-minor-version }} | ||
|
||
steps: | ||
- name: Fix line endings | ||
run: | | ||
git config --global core.autocrlf input | ||
- name: Checkout Pillow | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Cygwin | ||
uses: cygwin/cygwin-install-action@v2 | ||
with: | ||
platform: x86_64 | ||
packages: > | ||
ImageMagick gcc-g++ ghostscript jpeg libfreetype-devel | ||
libimagequant-devel libjpeg-devel liblapack-devel | ||
liblcms2-devel libopenjp2-devel libraqm-devel | ||
libtiff-devel libwebp-devel libxcb-devel libxcb-xinerama0 | ||
make netpbm perl | ||
python3${{ matrix.python-minor-version }}-cffi | ||
python3${{ matrix.python-minor-version }}-cython | ||
python3${{ matrix.python-minor-version }}-devel | ||
python3${{ matrix.python-minor-version }}-numpy | ||
python3${{ matrix.python-minor-version }}-sip | ||
python3${{ matrix.python-minor-version }}-tkinter | ||
qt5-devel-tools subversion xorg-server-extra zlib-devel | ||
- name: Add Lapack to PATH | ||
uses: egor-tensin/cleanup-path@v1 | ||
with: | ||
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack' | ||
|
||
- name: pip cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: 'C:\cygwin\home\runneradmin\.cache\pip' | ||
key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-${{ hashFiles('.ci/install.sh') }} | ||
restore-keys: | | ||
${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}- | ||
- name: Build system information | ||
run: | | ||
dash.exe -c "python3 .github/workflows/system-info.py" | ||
- name: Install dependencies | ||
run: | | ||
bash.exe .ci/install.sh | ||
- name: Install a different NumPy | ||
shell: dash.exe -l "{0}" | ||
run: | | ||
python3 -m pip install -U 'numpy!=1.21.*' | ||
- name: Build | ||
shell: bash.exe -eo pipefail -o igncr "{0}" | ||
run: | | ||
.ci/build.sh | ||
- name: Test | ||
run: | | ||
bash.exe xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh | ||
- name: Prepare to upload errors | ||
if: failure() | ||
run: | | ||
dash.exe -c "mkdir -p Tests/errors" | ||
- name: Upload errors | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: errors | ||
path: Tests/errors | ||
|
||
- name: After success | ||
run: | | ||
bash.exe .ci/after_success.sh | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage.xml | ||
flags: GHA_Cygwin | ||
name: Cygwin Python 3.${{ matrix.python-minor-version }} | ||
|
||
success: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Cygwin Test Successful | ||
steps: | ||
- name: Success | ||
run: echo Cygwin Test Successful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.