forked from sunpy/sunpy
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 2.07 KB
/
asv-regular.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
name: asv-benchmarks-daily
on:
# Allow manual runs through the web UI
workflow_dispatch:
schedule:
# ┌───────── minute (0 - 59)
# │ ┌───────── hour (0 - 23)
# │ │ ┌───────── day of the month (1 - 31)
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
- cron: "37 3 * * *" # Every day at 3:37am UTC
jobs:
asv-run:
if: ${{ github.repository == 'sunpy/sunpy' }}
runs-on: ubuntu-latest
steps:
- name: Checkout sunpy repo
uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: Checkout sunpy-benchmarks repo
uses: actions/checkout@v3
with:
repository: sunpy/sunpy-benchmarks
ref: main
path: asv_results
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
architecture: "x64"
- name: Install dependencies
run: |
sudo apt-get install -y libopencv-dev
python -m pip install --upgrade pip
pip install asv virtualenv
- name: Add machine info for ASV
run: asv machine --machine GH-Actions --os ubuntu-latest --arch x64 --cpu "2-core unknown" --ram 7GB
- name: Run benchmarks for commits since v2.1
run: taskset -c 0 asv run --skip-existing-successful v3.0.dev..
- name: Install SSH Client 🔑
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.ASV_CI_KEY }}
- name: Push results
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main
folder: asv_results
repository-name: sunpy/sunpy-benchmarks
ssh-key: true
commit-message: |
Push new results from GitHub Actions
repository: ${{ github.repository }}
workflow: ${{ github.workflow }}
triggered by: ${{ github.sha }}