Skip to content

Bump pyriemann from 0.6 to 0.7 #699

Bump pyriemann from 0.6 to 0.7

Bump pyriemann from 0.6 to 0.7 #699

name: Light Benchmark
on:
pull_request:
paths:
- 'pyriemann_qiskit/**'
- 'examples/**'
- '.github/workflows/light_benchmark.yml'
- 'benchmarks/light_benchmark.py'
- 'setup.py'
jobs:
light_benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: light_benchmark.yml
- name: Install dependencies
run: |
pip install .[docs]
- name: Run benchmark script (PR)
id: run-benchmark-pr
run: |
python benchmarks/light_benchmark.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.py ${{steps.run-benchmark-pr.outputs.RG_QSVM}} ${{steps.run-benchmark-pr.outputs.RG_VQC}} ${{steps.run-benchmark-pr.outputs.QMDM_mean}} ${{steps.run-benchmark-pr.outputs.QMDM_dist}} ${{steps.run-benchmark-pr.outputs.RG_LDA}}
- name: Compare performance
run: |
echo ${{steps.run-benchmark-main.outputs.success}}
if [[ "${{steps.run-benchmark-main.outputs.success}}" == "0" ]]; then
exit 1
fi