Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.
Rust
ci: base full CI on changed paths (#403)
Elias Shieh15136e370da4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 901618b59..461f1c4ed 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -20,11 +20,11 @@ jobs:permissions:pull-requests: readoutputs:- full_ci: ${{ github.event_name != 'pull_request' || (!startsWith(github.event.pull_request.title, 'docs') && steps.filter.outputs.full_ci == 'true') }}+ full_ci: ${{ github.event_name != 'pull_request' || steps.filter.outputs.full_ci == 'true' }}steps:- name: Detect non-documentation changesid: filter- if: github.event_name == 'pull_request' && !startsWith(github.event.pull_request.title, 'docs')+ if: github.event_name == 'pull_request'uses: dorny/paths-filter@v4with:predicate-quantifier: everydiff --git a/tests/test_ci_workflow.py b/tests/test_ci_workflow.pynew file mode 100644index 000000000..65f11e9b2--- /dev/null+++ b/tests/test_ci_workflow.py@@ -0,0 +1,31 @@+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+# SPDX-License-Identifier: Apache-2.0++"""Regression checks for the primary CI workflow."""++import asyncio+from pathlib import Path+from typing import Any++import yaml+++async def test_full_ci_depends_on_changed_paths_not_pr_title() -> None:+ """Ensure a docs-prefixed title cannot bypass substantive CI jobs."""+ workflow_path = Path(__file__).resolve().parents[1] / ".github" / "workflows" / "ci.yml"+ workflow_text = await asyncio.to_thread(workflow_path.read_text)+ workflow: dict[str, Any] = await asyncio.to_thread(+ yaml.load,+ workflow_text,+ Loader=yaml.BaseLoader,+ )+ changes = workflow["jobs"]["changes"]++ full_ci = changes["outputs"]["full_ci"]+ assert "pull_request.title" not in full_ci+ assert "github.event_name != 'pull_request'" in full_ci+ assert "steps.filter.outputs.full_ci == 'true'" in full_ci++ filter_step = next(step for step in changes["steps"] if step.get("id") == "filter")+ assert "pull_request.title" not in filter_step["if"]+ assert filter_step["if"] == "github.event_name == 'pull_request'"