len #10493
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
name: Test | |
on: | |
push: | |
branches: | |
- "**" | |
paths-ignore: | |
- ".github/workflows/docs.yml" | |
- ".github/workflows/wheels*" | |
- ".gitmodules" | |
- "docs/**" | |
- "wheels/**" | |
pull_request: | |
paths-ignore: | |
- ".github/workflows/docs.yml" | |
- ".github/workflows/wheels*" | |
- ".gitmodules" | |
- "docs/**" | |
- "wheels/**" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
COVERAGE_CORE: sysmon | |
FORCE_COLOR: 1 | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ | |
"macos-latest", | |
] | |
python-version: [ | |
"3.13", | |
] | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} Python ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: Quansight-Labs/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
cache: pip | |
cache-dependency-path: | | |
".ci/*.sh" | |
"pyproject.toml" | |
- name: Build system information | |
run: python3 .github/workflows/system-info.py | |
- name: Install Linux dependencies | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
.ci/install.sh | |
env: | |
GHA_PYTHON_VERSION: ${{ matrix.python-version }} | |
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }} | |
- name: Install macOS dependencies | |
if: startsWith(matrix.os, 'macOS') | |
run: | | |
.github/workflows/macos-install.sh | |
env: | |
GHA_PYTHON_VERSION: ${{ matrix.python-version }} | |
- name: Register gcc problem matcher | |
if: "matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'" | |
run: echo "::add-matcher::.github/problem-matchers/gcc.json" | |
- name: Build | |
run: | | |
.ci/build.sh | |
- name: Test | |
run: | | |
python3 -m pip install psutil | |
python3 -c "import psutil;process = psutil.Process();from PIL import Image;im = Image.open('clusterfuzz-testcase-minimized-fuzz_pillow-5015640213159936');print('memory1', process.memory_info().rss);im.load();print('memory2', process.memory_info().rss)" |