Skip to content

Commit

Permalink
Only run benchmarks on PRs when a label is set (#2114)
Browse files Browse the repository at this point in the history
This changes our ci benchmarks to only run when the label `run-benchmark` is set on the PR.

The motivation is to reduce the time waiting on benchmarks to run while working on PRs. Also this saves some ci minutes which is always good.
When we spot changes that we suspect impact performance, we can add the `run-benchmark` label to the PR and the benchmarks will run.
  • Loading branch information
raskad committed Jun 12, 2022
1 parent 6477f61 commit 8af90a7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
on: [pull_request]
name: Benchmarks

on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- labeled

jobs:
runBenchmark:
if: contains(github.event.pull_request.labels.*.name, 'run-benchmark')
name: run benchmark
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 8af90a7

Please sign in to comment.