Skip to content

Commit

Permalink
feat: run benchmark suit on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoortheen committed Aug 4, 2024
1 parent dfa15f9 commit d5704f4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,35 @@ jobs:
# fail_ci_if_error: true
# verbose: true

benchmark:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip --version
pip install -U pip
pip install -e ".[test]"
- name: Run benchmark
run: pytest tests/test_bench.py --benchmark-only --benchmark-json output.json
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Python Benchmark
tool: 'pytest'
output-file-path: output.json
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

release:
runs-on: ubuntu-latest
needs: test
Expand Down

0 comments on commit d5704f4

Please sign in to comment.