mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-07 16:19:05 +08:00
ci: add label-triggered OpenHands QA workflow (#1283)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
committed by
GitHub
co-authored by
openhands
parent
910b19ae76
commit
1016affac1
@@ -0,0 +1,41 @@
|
||||
---
|
||||
# Automated QA validation of PR changes using OpenHands.
|
||||
#
|
||||
# This workflow runs only when the `qa-this` label is added to a same-repo PR.
|
||||
# Unlike code review, the QA agent executes the changed code and posts a
|
||||
# functional verification report.
|
||||
name: QA Changes by OpenHands
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [labeled]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
qa-changes:
|
||||
# Only run for same-repo PRs (secrets are not available to forks), and
|
||||
# only when explicitly triggered by the `qa-this` label.
|
||||
if: |
|
||||
github.event.pull_request.head.repo.full_name == github.repository &&
|
||||
github.event.label.name == 'qa-this'
|
||||
concurrency:
|
||||
group: qa-changes-${{ github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Run QA Changes
|
||||
uses: OpenHands/extensions/plugins/qa-changes@main
|
||||
with:
|
||||
llm-model: litellm_proxy/openai/gpt-5.5
|
||||
llm-base-url: https://llm-proxy.app.all-hands.dev
|
||||
max-budget: '10.0'
|
||||
timeout-minutes: '30'
|
||||
max-iterations: '500'
|
||||
llm-api-key: ${{ secrets.LLM_API_KEY }}
|
||||
github-token: ${{ secrets.OPENHANDS_BOT_GITHUB_PAT_PUBLIC || github.token }}
|
||||
lmnr-api-key: ${{ secrets.LMNR_SKILLS_API_KEY }}
|
||||
Reference in New Issue
Block a user