Benchmark with app harness #5
Workflow file for this run
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: codspeed-benchmarks | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- '**/*.md' | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- '**/*.md' | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
benchmarks: | |
strategy: | |
# Prioritize getting more information out of the workflow (even if something fails) | |
fail-fast: false | |
matrix: | |
# Show OS combos first in GUI | |
os: [ ubuntu-latest ] | |
python-version: [ '3.8.18', '3.9.18', '3.10.13', '3.11.5', '3.12.0' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup_build_env | |
with: | |
python-version: ${{ matrix.python-version }} | |
run-poetry-install: true | |
create-venv-at-path: .venv | |
- run: poetry run pip install pytest-codspeed pyvirtualdisplay pillow | |
- name: Run benchmarks | |
uses: CodSpeedHQ/action@v2 | |
with: | |
run: poetry run pytest integration/benchmarks/ --codspeed |