-
Notifications
You must be signed in to change notification settings - Fork 84
123 lines (103 loc) · 2.86 KB
/
benchmarks.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: benchmarks
on:
workflow_run:
workflows: [tests]
branches: [master]
types: [completed]
jobs:
benchmark:
name: Run the benchmark
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create docker network
run: docker network create data
- name: Benchmark AIOHTTP
uses: ./.github/actions/benchmark
with:
name: aiohttp
network: data
- name: Benchmark Blacksheep
uses: ./.github/actions/benchmark
with:
name: blacksheep
network: data
- name: Benchmark Baize
uses: ./.github/actions/benchmark
with:
name: baize
network: data
- name: Benchmark Muffin
uses: ./.github/actions/benchmark
with:
name: muffin
network: data
- name: Benchmark Quart
uses: ./.github/actions/benchmark
with:
name: quart
network: data
- name: Benchmark Sanic
uses: ./.github/actions/benchmark
with:
name: sanic
network: data
- name: Benchmark Starlette
uses: ./.github/actions/benchmark
with:
name: starlette
network: data
- name: Benchmark Django
uses: ./.github/actions/benchmark
with:
name: django
network: data
- name: Benchmark Falcon
uses: ./.github/actions/benchmark
with:
name: falcon
network: data
- name: Benchmark FastApi
uses: ./.github/actions/benchmark
with:
name: fastapi
network: data
- name: Benchmark Emmett
uses: ./.github/actions/benchmark
with:
name: emmett
network: data
- name: Benchmark Tornado
uses: ./.github/actions/benchmark
with:
name: tornado
network: data
- name: Results
uses: actions/upload-artifact@v2
with:
name: results
path: ./results
readme:
name: Update Results
needs: benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- uses: actions/setup-python@v2
- run: python -m pip install -r render/requirements.txt
- run: python render/render.py
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Commit changes
run: |
git config --global user.name 'Github Actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add .
git commit -am "Update results"
git tag ${{ steps.date.outputs.date }}
git push -f --tags
git push