-
Notifications
You must be signed in to change notification settings - Fork 108
39 lines (36 loc) · 1.16 KB
/
dark_storage_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: Process Dark Storage Benchmark Result
on:
workflow_dispatch:
push:
branches:
- "gh-pages"
paths:
- "dev/dark_storage_performance_benchmark/output.json"
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
jobs:
benchmark:
name: Run pytest-benchmark dark storage
timeout-minutes: 90
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
lfs: true
ref: gh-pages
- name: Parse and plot pytest benchmark output
run: |
pip install matplotlib
dev/dark_storage_performance_benchmark/process_benchmark_result.py
rm -rf benchmark.svg
dev/dark_storage_performance_benchmark/plot_benchmark_result.py
git config --global user.name "Dark Storage Benchmarking Workflow"
git config --global user.email ""
git add .
git commit -m "Update plot dark_storage_performance_benchmark"
git push -f origin gh-pages:gh-pages