Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
CodSpeed
profiling Actions workflow (#8054)
Co-authored-by: Ben Lambert <bennett-spencer.lambert@pierer-innovation.com>
- Loading branch information
1 parent
f23578e
commit 7df25da
Showing
2 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: codspeed | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
# `workflow_dispatch` allows CodSpeed to trigger backtest | ||
# performance analysis in order to generate initial data. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
codspeed-profiling: | ||
name: codspeed profiling | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pdm-project/setup-pdm@v3 | ||
with: | ||
python-version: '3.10' | ||
cache: true | ||
|
||
- name: install deps | ||
run: | | ||
pdm venv create --with-pip --force $PYTHON | ||
pdm install -G testing -G testing-extra -G email | ||
- name: Run CodSpeed benchmarks | ||
uses: CodSpeedHQ/action@v1 | ||
with: | ||
run: pdm run pytest ./tests/benchmarks --codspeed |
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