-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (42 loc) · 1.26 KB
/
light_benchmark_nch_min_hull.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
name: Light Benchmark
on:
pull_request:
paths:
- 'pyriemann_qiskit/**'
- 'examples/**'
- '.github/workflows/light_benchmark_nch_min_hull.yml'
- 'benchmarks/light_benchmark_nch_min_hull.py'
- 'setup.py'
jobs:
light_benchmark_nch_min_hull:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: light_benchmark_nch_min_hull.yml
- name: Install dependencies
run: |
pip install .[docs]
- name: Run benchmark script (PR)
id: run-benchmark-pr
run: |
python benchmarks/light_benchmark_nch_min_hull.py pr
- uses: actions/checkout@v4
with:
ref: 'main'
- name: Install dependencies
run: |
pip install .[docs]
- name: Run benchmark script (main)
id: run-benchmark-main
run: |
python benchmarks/light_benchmark_nch_min_hull.py ${{steps.run-benchmark-pr.outputs.NCH_MIN_HULL}}
- name: Compare performance
run: |
echo ${{steps.run-benchmark-main.outputs.success}}
if [[ "${{steps.run-benchmark-main.outputs.success}}" == "0" ]]; then
exit 1
fi