Repository navigation
chore(deps): Bump opencv-python from 5.0.0.93 to 5.1.0.95 in the python-minor-and-patch group #22
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
| # Speed comparison of a pull request against its base, required on master: it | |
| # fails only on a large, clear slowdown (a workload more than 2x slower than the | |
| # base, --fail-above 2), which the operation-count tests cannot see (for | |
| # example slow pure-Python code). Smaller changes are flagged SLOWER in the job | |
| # summary and the "bench-ab" artifact for a maintainer. It does not post PR | |
| # comments, because pull requests from forks get a read-only token. Script and | |
| # statistics: .github/scripts/bench_ab.py. | |
| name: Speed comparison | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| POETRY_VERSION: "2.4.3" | |
| jobs: | |
| bench: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 # the base commit must be present for git worktree | |
| persist-credentials: false | |
| - name: Install Poetry | |
| run: pipx install "poetry==${POETRY_VERSION}" | |
| - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: "3.13" | |
| cache: poetry | |
| - name: Install dependencies | |
| run: | | |
| poetry install | |
| .github/scripts/use_cpu_torch.sh "poetry run python" | |
| # Head is github.sha, the test merge of the pull request into master, so the | |
| # difference from the base commit is exactly the pull request's change. | |
| - name: Compare base and head (alternating rounds) | |
| env: | |
| HEAD_SHA: ${{ github.sha }} | |
| # HEAD^1 of the test merge is the master tip it merges into. | |
| run: > | |
| poetry run python .github/scripts/bench_ab.py | |
| --base "$(git rev-parse HEAD^1)" --head "$HEAD_SHA" --fail-above 2 | |
| --out bench-out --summary "$GITHUB_STEP_SUMMARY" | |
| - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 | |
| if: always() | |
| with: | |
| name: bench-ab | |
| path: | | |
| bench-out/bench_ab.md | |
| bench-out/bench_ab.json |