File: asv-regular.yml

package info (click to toggle)
sunpy 7.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,632 kB
  • sloc: python: 41,887; ansic: 1,720; makefile: 28
file content (58 lines) | stat: -rw-r--r-- 2,135 bytes parent folder | download
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@v5
        with:
          fetch-depth: "0"
      - name: Checkout sunpy-benchmarks repo
        uses: actions/checkout@v5
        with:
          repository: sunpy/sunpy-benchmarks
          ref: main
          path: asv_results
      - name: Set up Python 3.11
        uses: actions/setup-python@v6
        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 --steps 50 v3.0.dev..
      - name: Install SSH Client 🔑
        uses: webfactory/ssh-agent@v0.9.1
        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 }}