-
-
Notifications
You must be signed in to change notification settings - Fork 33
40 lines (29 loc) · 940 Bytes
/
run-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
name: Run benchmarks
on: [push, pull_request]
jobs:
benchmarks:
runs-on: ubuntu-20.04
steps:
- name: Checkout SymPy
uses: actions/checkout@v3
with:
repository: sympy/sympy
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install virtualenv asv
- name: Setup access to branches
run: |
git submodule add https://github.com/sympy/sympy_benchmarks.git
git remote add upstream https://github.com/sympy/sympy.git
git fetch upstream master
git fetch upstream 1.12
- name: Configure benchmarks
run: asv machine --yes --config asv.conf.actions.json
- name: Run benchmarks
run: asv run --config asv.conf.actions.json