fix(tui): stop cancel-then-resend from racing the daemon's session lock #307
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright(C) 2025-2026 Advanced Micro Devices, Inc. All rights reserved. | |
| # SPDX-License-Identifier: MIT | |
| # Tests the GAIA Routing agent, which ships as the standalone gaia-agent-routing | |
| # wheel (#1102). | |
| name: Routing Agent Tests | |
| on: | |
| workflow_call: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'hub/agents/routing/python/**' | |
| - 'src/gaia/agents/base/**' | |
| - 'src/gaia/agents/registry.py' | |
| - 'src/gaia/api/agent_registry.py' | |
| - 'setup.py' | |
| - '.github/workflows/test_routing_agent.yml' | |
| pull_request: | |
| branches: [ main ] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - 'hub/agents/routing/python/**' | |
| - 'src/gaia/agents/base/**' | |
| - 'src/gaia/agents/registry.py' | |
| - 'src/gaia/api/agent_registry.py' | |
| - 'setup.py' | |
| - '.github/workflows/test_routing_agent.yml' | |
| merge_group: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-routing-agent: | |
| name: Test Routing Agent | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false || contains(github.event.pull_request.labels.*.name, 'ready_for_ci') | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv | |
| run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
| - name: Install dependencies | |
| run: | | |
| uv pip install --system -e .[dev] | |
| # RoutingAgent ships as the standalone gaia-agent-routing wheel (#1102) | |
| uv pip install --system -e hub/agents/routing/python | |
| - name: Run Routing Agent Tests | |
| run: | | |
| python -m pytest hub/agents/routing/python/tests/ -v --tb=short |