-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0854292
commit 6e61bb1
Showing
2 changed files
with
43 additions
and
40 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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@v3 | ||
- uses: actions/setup-python@v3 | ||
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 tests/ --codspeed |