Skip to content

Commit 2633e5c

Browse files
committed
Add Benchmarks upload workflow file
1 parent 0a7f4d2 commit 2633e5c

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/bench-upload.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This file is manually managed. It is used to upload benchmarks to to the
2+
# https://github.com/enso-org/engine-benchmark-results repository.
3+
4+
name: Benchmarks upload
5+
on:
6+
schedule:
7+
- cron: 0 0 * * *
8+
workflow_dispatch:
9+
inputs:
10+
dry-run:
11+
description: If set, no results will be uploaded.
12+
required: true
13+
type: boolean
14+
default: false
15+
jobs:
16+
upload-benchmarks:
17+
name: Upload benchmarks
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout enso repository
21+
uses: actions/checkout@v4
22+
repository: enso-org/enso
23+
with:
24+
path: enso
25+
- name: Checkout engine-benchmark-results repository
26+
uses: actions/checkout@v4
27+
repository: enso-org/engine-benchmark-results
28+
with:
29+
path: engine-benchmark-results
30+
- name: Install dependencies
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y python3 python3-jinja2 python3-numpy
34+
sudo apt-get install -y gh
35+
- name: Upload benchmarks
36+
run: |
37+
cd enso/tools/performance/engine-benchmarks/bench_tool
38+
python3 website_regen.py \
39+
-v \
40+
${{ if github.event.inputs.dry-run}} --dry-run ${{ endif }} \
41+
--local-repo engine-benchmark-results
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
Jinja2 == 3.1.2
3+
numpy == 1.24.2

0 commit comments

Comments
 (0)