Skip to content

asv-benchmarks-daily #1034

asv-benchmarks-daily

asv-benchmarks-daily #1034

Workflow file for this run

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@v4
with:
fetch-depth: "0"
- name: Checkout sunpy-benchmarks repo
uses: actions/checkout@v4
with:
repository: sunpy/sunpy-benchmarks
ref: main
path: asv_results
- name: Set up Python 3.11
uses: actions/setup-python@v5
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/ssh-agent@v0.9.0
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 }}