-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.11 KB
/
charts.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
name: Charts
on:
push:
branches: [master]
paths:
- benchmark/results/*.json
- benchmark/*chart*.py
- .github/workflows/charts.yml
workflow_run:
workflows: [Benchmark]
types: [completed]
workflow_dispatch:
jobs:
gen_charts:
name: Gen Benchmark Charts
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip install -r benchmark/requirements.txt
- name: Gen Charts
run: python gen_charts.py
working-directory: benchmark
- name: Commit Results
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add benchmark/charts
git commit -m "Upload benchmark charts"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}