name: Self-Hosted Provider Integration - vLLM on: workflow_dispatch: # inputs: # ref: # description: 'Git ref to test' # required: false # type: string # default: ${{ github.sha || github.ref || github.event.pull_request.head.sha }} pull_request: paths: - '**' - '.github/workflows/test-vllm.yml' - '.github/workflows/reusable-test-workflow.yml' pull_request_target: types: [labeled] paths: - '**' - '.github/workflows/test-vllm.yml' - '.github/workflows/reusable-test-workflow.yml' jobs: test-vllm: # Run on pull_request OR on pull_request_target only when labeled "safe to test" if: github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test')) uses: ./.github/workflows/reusable-test-workflow.yml with: test-type: "integration" is-external-pr: ${{ github.event_name == 'pull_request_target' && !contains(github.event.pull_request.labels.*.name, 'safe to test') }} install-args: "--extra postgres --extra external-tools --extra dev --extra cloud-tool-sandbox" test-command: "uv run --frozen pytest -svv tests/" timeout-minutes: 60 runner: '["self-hosted", "gpu", "vllm"]' matrix-strategy: | { "fail-fast": false, "matrix": { "test_suite": [ "test_providers.py::test_vllm", "integration_test_send_message.py" ] } } secrets: inherit