Skip to content

Commit

Permalink
Test action
Browse files Browse the repository at this point in the history
  • Loading branch information
CalShucha committed Jan 20, 2025
1 parent 3f534f9 commit 47dbe3f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,30 @@ jobs:
gh release upload ${{github.event.release.tag_name}} dist/taf-macos
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

benchmark:
name: Run benchmarking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.10.16
- name: Run benchmark
run: |
pytest -k "test_benchmark_clone_valid_happy_path" --benchmark-json output.json
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Python Benchmark with pytest-benchmark
tool: 'pytest'
output-file-path: examples/pytest/output.json
# Use personal access token instead of GITHUB_TOKEN due to https://github.community/t/github-action-not-triggering-gh-pages-upon-push/16096
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '120%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@ktrz'

0 comments on commit 47dbe3f

Please sign in to comment.