asv-benchmarks-daily #384
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |