forked from pflooky/data-caterer-example
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.16 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Run performance benchmark tests
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout data-caterer-example repo
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check if benchmark has already run
run: |
version=$(grep dataCatererVersion gradle.properties | cut -d= -f2)
if [ ! -f benchmark/results/benchmark_results_${version}.txt ]; then
echo "No benchmark results for version: $version, starting to run benchmarks"
else
echo "Benchmarks already run!"
exit 1
fi
- name: Checkout datafusion-comet repo
uses: actions/checkout@v4
with:
fetch-depth: 2
repository: apache/datafusion-comet
path: benchmark/build/datafusion-comet
- name: Get Spark query engine jars
run: bash benchmark/setup_query_engine_jars.sh
- name: Run benchmark script
run: bash benchmark/run_benchmark.sh
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
title: Add benchmark results