mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-05-03 21:34:20 +02:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: BW Benchmarks
|
|
|
|
on: [ workflow_call ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
QTWEBENGINE_DISABLE_SANDBOX: 1
|
|
QT_QPA_PLATFORM: "offscreen"
|
|
|
|
jobs:
|
|
benchmark:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
issues: write
|
|
pull-requests: write
|
|
defaults:
|
|
run:
|
|
shell: bash -el {0}
|
|
|
|
steps:
|
|
- name: Checkout BEC Widgets
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: bec-project/bec_widgets
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
|
|
- name: Set up Conda
|
|
uses: conda-incubator/setup-miniconda@v3
|
|
with:
|
|
auto-update-conda: true
|
|
auto-activate-base: true
|
|
python-version: "3.11"
|
|
|
|
- name: Run, compare, and publish benchmarks
|
|
uses: bec-project/benchmark_action@main
|
|
with:
|
|
mode: all
|
|
attempts: "3"
|
|
system-packages: libgl1 libegl1 x11-utils libxkbcommon-x11-0 libdbus-1-3 xvfb
|
|
libnss3 libxdamage1 libasound2t64 libatomic1 libxcursor1 hyperfine
|
|
redis-server
|
|
setup-scripts: .github/scripts/setup_benchmark_env.sh
|
|
benchmark-pytest-dirs: tests/unit_tests/benchmarks
|
|
threshold-percent: "10"
|