@@ -287,6 +287,9 @@ def test_testpypi_workflow_is_manual_main_only_and_matches_release_gates() -> No
287287 assert "testpypi-distributions" in verify
288288 assert "tests/clean_install_smoke.py" in verify
289289 assert "tests/test_live.py" in verify
290+ assert "SERPAPI_API_KEY: ${{ secrets.SERPAPI_API_KEY }}" in verify
291+ assert "SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }}" in verify
292+ assert 'test -n "$SERPAPI_API_KEY" || test -n "$SERPAPI_KEY"' in verify
290293
291294 frameworks = _workflow_job_text (workflow , "framework-tests" )
292295 assert "needs: test" in frameworks
@@ -315,7 +318,10 @@ def test_ci_separates_quality_basic_framework_and_live_checks() -> None:
315318 live_adapters = _workflow_job_text (ci , "live-adapters" )
316319
317320 assert "SERPAPI_API_KEY" not in frameworks
321+ assert "SERPAPI_KEY" not in frameworks
318322 assert "SERPAPI_API_KEY: ${{ secrets.SERPAPI_API_KEY }}" in live
323+ assert "SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }}" in live
324+ assert 'test -n "$SERPAPI_API_KEY" || test -n "$SERPAPI_KEY"' in live
319325 assert "needs: quality" in live
320326 assert "github.event_name == 'push' && github.ref == 'refs/heads/main'" in live
321327 assert "github.event_name == 'schedule'" in live
@@ -325,6 +331,8 @@ def test_ci_separates_quality_basic_framework_and_live_checks() -> None:
325331
326332 assert "needs: quality" in live_adapters
327333 assert "SERPAPI_API_KEY: ${{ secrets.SERPAPI_API_KEY }}" in live_adapters
334+ assert "SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }}" in live_adapters
335+ assert 'test -n "$SERPAPI_API_KEY" || test -n "$SERPAPI_KEY"' in live_adapters
328336 assert "tests/test_live_adapters.py" in live_adapters
329337
330338
@@ -344,6 +352,9 @@ def test_release_workflow_uses_pypi_trusted_publishing() -> None:
344352 assert "\n verify-distributions:\n " in release
345353 assert "tests/clean_install_smoke.py" in release
346354 assert "tests/test_live.py" in release
355+ assert "SERPAPI_API_KEY: ${{ secrets.SERPAPI_API_KEY }}" in verify_distributions
356+ assert "SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }}" in verify_distributions
357+ assert 'test -n "$SERPAPI_API_KEY" || test -n "$SERPAPI_KEY"' in verify_distributions
347358 assert 'python-version: "3.14"' in verify_distributions
348359 assert "\n framework-tests:\n " in release
349360 assert "tox-environment:" in _workflow_job_text (release , "framework-tests" )
0 commit comments