diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 96f1f58..475c0e9 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -1,4 +1,4 @@ -# Benchmarks and integrity checks (workflow_dispatch only). +# Benchmarks and integrity checks (push to main branches and workflow_dispatch). # # Pinned first-party actions (bump tag and SHA together when upgrading): # actions/checkout@v6.0.1 8e8c483db84b4bee98b60c0593521ed34d9990e8 @@ -9,6 +9,14 @@ name: Benchmarks on: workflow_dispatch: + push: + branches: + - master + - dev + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read @@ -60,4 +68,4 @@ jobs: - name: Run integrity tests run: | set -euo pipefail - task test-integrity 2>&1 | tee -a bench_results.txt + task test:integrity 2>&1 | tee -a bench_results.txt diff --git a/Taskfile.yml b/Taskfile.yml index 0f6bc8d..73d97e9 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -234,6 +234,11 @@ tasks: cmds: - "poetry run pytest tests/backend/test_translator_handler.py" + bench: + desc: Default benchmark run (backend comprehensive suite; same as bench:be) + cmds: + - task: bench:be + bench:be: desc: Run backend benchmarks cmds: