-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.07 KB
/
asv.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
name: "ASV Bot"
on:
push:
branches:
- main
schedule:
- cron: "53 17 * * *"
workflow_dispatch:
inputs:
number:
description: 'Number of commits to benchmark'
required: false
jobs:
benchmark:
name: "Run benchmarks"
runs-on: self-hosted
concurrency:
group: ${{ github.actor }}-asv
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run benchmarks
run: |
~/.local/bin/rtx activate bash
~/.local/bin/asv run HEAD~10..HEAD
if: "${{ github.event.inputs.number == '' }}"
- name: Run benchmarks
run: |
~/.local/bin/rtx activate bash
~/.local/bin/asv run HEAD~${{ github.event.inputs.number }}..HEAD
if: "${{ github.event.inputs.number != '' }}"
- name: Publish benchmarks
run: |
~/.local/bin/asv publish
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_options: '--no-verify --no-gpg-sign'