Skip to content

add Benchmark (pytest) benchmark result for 37a35375d5409465223ed6fbe… #1407

add Benchmark (pytest) benchmark result for 37a35375d5409465223ed6fbe…

add Benchmark (pytest) benchmark result for 37a35375d5409465223ed6fbe… #1407

Workflow file for this run

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