-
Notifications
You must be signed in to change notification settings - Fork 323
53 lines (52 loc) · 1.9 KB
/
bench-upload.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This file is manually managed. It is used to upload benchmarks to to the
# https://github.com/enso-org/engine-benchmark-results repository.
name: Benchmarks upload
on:
pull_request:
branches: ["*"]
schedule:
# Run every day at 5:30 AM. At midnight, benchmarks run, and we want this job to be
# scheduled after all the benchmarks are finished, so that we have the newest results.
- cron: 30 5 * * *
jobs:
upload-benchmarks:
name: Upload benchmarks
runs-on: ubuntu-latest
steps:
- name: Checkout enso repository
uses: actions/checkout@v4
with:
repository: enso-org/enso
path: enso
- name: Checkout engine-benchmark-results repository
uses: actions/checkout@v4
with:
repository: enso-org/engine-benchmark-results
path: engine-benchmark-results
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
python3 \
python3-jinja2 \
python3-numpy \
python3-pandas
sudo apt-get install -y gh
- name: Set up git
run: |
git config --global user.email "[email protected]"
git config --global user.name "enso-bench-bot"
cd ${{ github.workspace }}/engine-benchmark-results
git remote set-url origin https://x-access-token:${{ secrets.ENSO_BENCHMARK_RESULTS_TOKEN }}@github.com/enso-org/engine-benchmark-results
echo "Hello world" > hello.txt
git add hello.txt
git commit -m "Add hello.txt"
git push origin
#- name: Upload benchmarks
#run: |
#cd enso/tools/performance/engine-benchmarks
#python3 website_regen.py \
# -v \
# --local-repo ${{ github.workspace }}/engine-benchmark-results
#env:
# GITHUB_TOKEN: ${{ secrets.ENSO_BENCHMARK_RESULTS_TOKEN }}