add Benchmark (pytest) benchmark result for 6d793733d15f89228e5c636e0… #1397
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: Test Action | |
on: | |
push: | |
branches: | |
- main | |
issue_comment: | |
types: [created] | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
check-perf-main: | |
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
name: Record performance on main | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Run the bench | |
run: python demo.py | |
- name: Check perf | |
uses: nuclia/nucliadb_performance@main | |
with: | |
github_sha: ${{ github.sha }} | |
metrics_file: metrics.json | |
influxdb_url: ${{ secrets.INFLUXDB_SERVER }} | |
influxdb_token: ${{ secrets.INFLUXDB_TOKEN }} | |
influxdb_org: nuclia | |
influxdb_bucket: benchmarks | |
check-perf-pr: | |
if: github.event.issue.pull_request && contains(github.event.comment.body, '/bench') | |
runs-on: ubuntu-latest | |
name: Check performance on the PR | |
steps: | |
- name: Get PR branch | |
uses: xt0rted/pull-request-comment-branch@v1 | |
id: comment-branch | |
- uses: actions/checkout@v3 | |
if: success() | |
with: | |
ref: ${{ steps.comment-branch.outputs.head_ref }} | |
- name: Run the bench | |
run: python demo.py | |
- name: Check perf | |
uses: nuclia/nucliadb_performance@v1 | |
with: | |
github_sha: ${{ github.sha }} | |
metrics_file: metrics.json | |
head_ref: ${{ steps.comment-branch.outputs.head_ref }} | |
influxdb_url: ${{ secrets.INFLUXDB_SERVER }} | |
influxdb_token: ${{ secrets.INFLUXDB_TOKEN }} | |
influxdb_org: nuclia | |
influxdb_bucket: benchmarks |