From 47d355da153af8a17f45ae4e166a62aed581e98e Mon Sep 17 00:00:00 2001 From: Ivan Date: Fri, 24 Apr 2026 14:41:19 -0500 Subject: [PATCH] feat(task): add default benchmark task and update workflow triggers for benchmarks --- .github/workflows/bench.yml | 12 ++++++++++-- Taskfile.yml | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-) 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: