BUG: Handle chained colorspace for inline images when no filter is se… #1237
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: Benchmarking pypdf | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
deployments: write | |
jobs: | |
benchmark: | |
name: Run pytest-benchmark | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.x"] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements (Python 3) | |
run: | | |
pip install -r requirements/ci-3.11.txt | |
- name: Install pypdf | |
run: | | |
pip install . | |
- name: Run benchmark | |
run: | | |
pytest tests/bench.py --benchmark-json output.json | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Python Benchmark with pytest-benchmark | |
tool: 'pytest' | |
output-file-path: output.json | |
# Use personal access token instead of GITHUB_TOKEN due to https://gh.neting.ccmunity/t/github-action-not-triggering-gh-pages-upon-push/16096 | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
# Show alert with commit comment on detecting possible performance regression | |
alert-threshold: '200%' | |
comment-on-alert: true | |
fail-on-alert: true | |
alert-comment-cc-users: '@MartinThoma' |