-
-
Notifications
You must be signed in to change notification settings - Fork 55
47 lines (38 loc) · 1.11 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
name: Benchmarks
on:
pull_request:
jobs:
benchmarks:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get -y install libunwind-dev binutils-dev libiberty-dev
- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Compile Austin
run: |
autoreconf --install
./configure --enable-debug-symbols true
make
- name: Install runtime dependencies
run: |
python3.10 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r scripts/requirements-bm.txt
deactivate
- name: Run benchmarks
run: |
ulimit -c unlimited
source .venv/bin/activate
python scripts/benchmark.py --format markdown | tee comment.txt
deactivate
- name: Post results on PR
uses: marocchino/sticky-pull-request-comment@v2
with:
path: comment.txt