|
1 | 1 | name: Benchmark
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - branches: [main] |
6 |
| - pull_request: |
7 |
| - branches: [main] |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + pull_request: |
| 7 | + branches: [main] |
8 | 8 |
|
9 | 9 | env:
|
10 |
| - FORCE_COLOR: "1" |
| 10 | + FORCE_COLOR: "1" |
11 | 11 |
|
12 | 12 | defaults:
|
13 |
| - run: |
14 |
| - shell: bash -e {0} # -e to fail on error |
| 13 | + run: |
| 14 | + shell: bash -e {0} # -e to fail on error |
15 | 15 |
|
16 | 16 | jobs:
|
17 |
| - benchmark: |
18 |
| - runs-on: ${{ matrix.os }} |
19 |
| - |
20 |
| - strategy: |
21 |
| - fail-fast: false |
22 |
| - matrix: |
23 |
| - python: ["3.13"] |
24 |
| - os: [ubuntu-latest] |
25 |
| - |
26 |
| - env: |
27 |
| - OS: ${{ matrix.os }} |
28 |
| - PYTHON: ${{ matrix.python }} |
29 |
| - ASV_DIR: "./benchmarks" |
30 |
| - |
31 |
| - steps: |
32 |
| - - uses: actions/checkout@v4 |
33 |
| - with: |
34 |
| - fetch-depth: 0 |
35 |
| - |
36 |
| - - name: Fetch main branch for `asv run`’s hash |
37 |
| - run: git fetch origin main:main |
38 |
| - if: ${{ github.ref_name != 'main' }} |
39 |
| - |
40 |
| - - name: Set up Python ${{ matrix.python }} |
41 |
| - uses: actions/setup-python@v5 |
42 |
| - with: |
43 |
| - python-version: ${{ matrix.python }} |
44 |
| - cache: 'pip' |
45 |
| - |
46 |
| - - name: Cache datasets |
47 |
| - uses: actions/cache@v4 |
48 |
| - with: |
49 |
| - path: | |
50 |
| - ~/.cache |
51 |
| - key: benchmark-state-${{ hashFiles('benchmarks/**') }} |
52 |
| - |
53 |
| - - name: Install dependencies |
54 |
| - run: pip install 'asv>=0.6.4' |
55 |
| - |
56 |
| - - name: Configure ASV |
57 |
| - working-directory: ${{ env.ASV_DIR }} |
58 |
| - run: asv machine --yes |
59 |
| - |
60 |
| - - name: Quick benchmark run |
61 |
| - working-directory: ${{ env.ASV_DIR }} |
62 |
| - run: asv run --dry-run --quick --show-stderr --verbose HEAD^! |
| 17 | + benchmark: |
| 18 | + runs-on: ${{ matrix.os }} |
| 19 | + |
| 20 | + strategy: |
| 21 | + fail-fast: false |
| 22 | + matrix: |
| 23 | + python: ["3.13"] |
| 24 | + os: [ubuntu-latest] |
| 25 | + |
| 26 | + env: |
| 27 | + OS: ${{ matrix.os }} |
| 28 | + PYTHON: ${{ matrix.python }} |
| 29 | + ASV_DIR: "./benchmarks" |
| 30 | + |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + with: |
| 34 | + fetch-depth: 0 |
| 35 | + |
| 36 | + - name: Fetch main branch for `asv run`’s hash |
| 37 | + run: git fetch origin main:main |
| 38 | + if: ${{ github.ref_name != 'main' }} |
| 39 | + |
| 40 | + - name: Set up Python ${{ matrix.python }} |
| 41 | + uses: actions/setup-python@v5 |
| 42 | + with: |
| 43 | + python-version: ${{ matrix.python }} |
| 44 | + cache: "pip" |
| 45 | + |
| 46 | + - name: Cache datasets |
| 47 | + uses: actions/cache@v4 |
| 48 | + with: |
| 49 | + path: | |
| 50 | + ~/.cache |
| 51 | + key: benchmark-state-${{ hashFiles('benchmarks/**') }} |
| 52 | + |
| 53 | + - name: Install dependencies |
| 54 | + run: pip install 'asv>=0.6.4' |
| 55 | + |
| 56 | + - name: Configure ASV |
| 57 | + working-directory: ${{ env.ASV_DIR }} |
| 58 | + run: asv machine --yes |
| 59 | + |
| 60 | + - name: Quick benchmark run |
| 61 | + working-directory: ${{ env.ASV_DIR }} |
| 62 | + run: asv run --dry-run --quick --show-stderr --verbose HEAD^! |
0 commit comments