Skip to content

Commit 8d5c896

Browse files
authored
Merge pull request #433 from ami-iit/flferretti-patch-2
Automatically trigger GPU benchmarks on pushes to `main` branch
2 parents febc236 + 45dfede commit 8d5c896

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/gpu_benchmark.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: GPU Benchmarks
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
58
types: [opened, reopened, synchronize]
69
workflow_dispatch:
@@ -46,7 +49,7 @@ jobs:
4649
uses: actions/cache/restore@v4
4750
with:
4851
path: ./cache
49-
key: ${{ steps.get-main-branch-sha.outputs.sha }}-${{ runner.os }}-benchmark
52+
key: ${{ runner.os }}-benchmark
5053

5154
- name: Ensure version file is written
5255
run: |
@@ -60,7 +63,6 @@ jobs:
6063

6164
- name: Compare benchmark results with main branch
6265
uses: benchmark-action/[email protected]
63-
if: steps.cache.outputs.cache-hit == 'true'
6466
with:
6567
tool: 'pytest'
6668
output-file-path: output.json
@@ -106,4 +108,4 @@ jobs:
106108
if: ${{ github.ref_name == 'main' }}
107109
with:
108110
path: ./cache
109-
key: ${{ steps.get-main-branch-sha.outputs.sha }}-${{ runner.os }}-benchmark
111+
key: ${{ runner.os }}-benchmark

0 commit comments

Comments
 (0)