name: QE Acceptance Tests on: workflow_dispatch: inputs: acceptance_runs: description: 'Layer B stability runs (1 = skip stability testing)' required: false default: '1' ir_path: description: 'Path to IR JSON file (relative to workspace)' required: false default: 'output/ir_final.json' parsed_path: description: 'Path to _parsed.json or _updated.json (relative to workspace)' required: false default: 'output/车机娱乐系统禁止功能文档_精简_updated.json' jobs: acceptance: runs-on: shell timeout-minutes: 30 steps: - name: Checkout main branch run: | git clone --depth 1 http://localhost:3000/pzhang_zywl/document_analyzer.git . git checkout main - name: Install dependencies run: pip install -r requirements.txt - name: Run QE Acceptance Tests run: >- python -m pytest tests/acceptance/ -v --run-acceptance --acceptance-runs=${{ github.event.inputs.acceptance_runs }} --ir-path=${{ github.event.inputs.ir_path }} --parsed-path=${{ github.event.inputs.parsed_path }} --tb=long env: DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }} - name: Create issue on failure if: failure() env: GITEA_API_TOKEN: ${{ secrets.GITEA_TOKEN }} run: >- python scripts/create_failure_issue.py --sha "${{ github.sha }}" --branch "main" --run "${{ github.run_number }}" --message "QE Acceptance Tests Failed" --workflow "QE Acceptance" --labels "acceptance-failure,agent-task"