forked from cvxpy/cvxpy
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.36 KB
/
pr_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
name: pr_benchmarks
on:
pull_request:
jobs:
pr_benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Checkout cvxpy
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install cvxpy dependencies
run: |
pip install .
- name: Checkout benchmark
uses: actions/checkout@v2
with:
repository: cvxpy/benchmarks
ref: main
path: benchmark/
- name: Install benchmark dependencies
run: |
cd benchmark/
pip install .
- name: Run benchmarks
run: |
cd benchmark/
asv machine --config asv_pr.conf.json --yes
asv continuous origin/master HEAD --config asv_pr.conf.json --quick
asv compare origin/master HEAD --config asv_pr.conf.json --split --sort ratio | tee -a asv_compare.log
mkdir comment_log
mv asv_compare.log comment_log/
- name: Save PR Number
env:
PR_NUMBER: ${{github.event.pull_request.number}}
run: |
echo $PR_NUMBER > ./benchmark/comment_log/pr_number
- name: Upload the artifact folder
uses: actions/upload-artifact@v3
with:
name: comment_log
path: benchmark/comment_log/