-
-
Notifications
You must be signed in to change notification settings - Fork 92
58 lines (53 loc) · 1.45 KB
/
benchmarks_ext.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
54
55
56
57
58
name: benchmarks-ext
on:
workflow_dispatch:
schedule:
- cron: '0 0 1,15 * *'
jobs:
tfb:
if: github.repository == 'emmett-framework/granian'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: deps
working-directory: ./benchmarks
run: |
pip install -r external/tfb/requirements.txt
- name: pull
working-directory: ./benchmarks
run: |
python external/tfb/loader.py > results/tfb.json
- name: upload results
uses: actions/upload-artifact@v4
with:
name: results-tfb
path: benchmarks/results/*
results:
if: github.repository == 'emmett-framework/granian'
runs-on: ubuntu-latest
needs: [tfb]
steps:
- uses: actions/checkout@v4
- uses: gi0baro/setup-noir@v1
- uses: actions/download-artifact@v4
with:
name: results-tfb
path: benchmarks/results
- name: render
working-directory: ./benchmarks
run: |
noir -c data:results/tfb.json templates/external/tfb.md > external/tfb.md
- name: open PR
uses: peter-evans/create-pull-request@v6
with:
branch: benchmarks-ext-update
branch-suffix: timestamp
title: Update external benchmark results
body: SSIA
commit-message: |
Update external benchmark results
add-paths: |
benchmarks/external