Skip to content

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

Revert "ci: base full CI on changed paths (#403)" (#414)

nachiketb-nvidiaa12a741c1070
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 461f1c4ed..901618b59 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,11 +20,11 @@ jobs:
permissions:
pull-requests: read
outputs:
- full_ci: ${{ github.event_name != 'pull_request' || steps.filter.outputs.full_ci == 'true' }}
+ full_ci: ${{ github.event_name != 'pull_request' || (!startsWith(github.event.pull_request.title, 'docs') && steps.filter.outputs.full_ci == 'true') }}
steps:
- name: Detect non-documentation changes
id: filter
- if: github.event_name == 'pull_request'
+ if: github.event_name == 'pull_request' && !startsWith(github.event.pull_request.title, 'docs')
uses: dorny/paths-filter@v4
with:
predicate-quantifier: every
diff --git a/tests/test_ci_workflow.py b/tests/test_ci_workflow.py
deleted file mode 100644
index 65f11e9b2..000000000
--- a/tests/test_ci_workflow.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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'"