This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
forked from mars-project/mars
-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (59 loc) · 1.83 KB
/
benchmark-ci.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
name: Mars Continuous Benchmark
on:
pull_request:
branches:
- master
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
asv-benchmarks:
name: ASV Benchmarks
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
concurrency:
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-asv-benchmarks
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up conda 3.8
env:
PYTHON: 3.8
shell: bash
run: |
source ./ci/install-conda.sh
python -m pip install --upgrade pip setuptools wheel coverage;
- name: Install dependencies
id: build
run: |
source ./ci/reload-env.sh
export DEFAULT_VENV=$VIRTUAL_ENV
pip install numpy scipy cython oss2 asv
pip install -e ".[dev,extra]"
- name: Run ASV benchmarks
run: |
source ./ci/reload-env.sh
unset CI
cd benchmarks/asv_bench
git config --global user.email "[email protected]"
git config --global user.name "Mars ASV Benchmark"
asv check -E existing
git remote add upstream https://github.com/xprobe-inc/mars.git
git fetch upstream
git merge upstream/master
asv machine --yes
asv continuous -f 1.1 --strict upstream/master HEAD
if: ${{ steps.build.outcome == 'success' }}
- name: Publish benchmarks artifact
uses: actions/upload-artifact@v2
with:
name: Benchmarks log
path: benchmarks/asv_bench/results
if: failure()