DEV: Bump virtualenv from 20.27.0 to 20.36.1 (#3597) #1590
This file contains hidden or 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: "Benchmark ${{ matrix.name }}" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.x'] | |
| include: | |
| - python-version: '3.x' | |
| name: 'CPython' | |
| - python-version: 'pypy3.11' | |
| name: 'PyPy 3.11' | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: 'recursive' | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install requirements | |
| 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: "${{ matrix.name }} Benchmark" | |
| tool: 'pytest' | |
| output-file-path: output.json | |
| # Use personal access token instead of GITHUB_TOKEN due to https://github.community/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 |