From 6ed9e181d7a9bbe1fc74349c7a7ce1ef59d35c79 Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 6 Nov 2025 17:45:25 +0000 Subject: [PATCH] Use shell:bash in run-examples workflow Add 'shell: bash' to bash script steps in the run-examples workflow. This automatically applies 'set -euo pipefail' which ensures failures won't get masked, as suggested by Ray. Also removed the redundant 'set -e' since shell:bash provides the more robust 'set -euo pipefail' automatically. Co-authored-by: openhands --- .github/workflows/run-examples.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-examples.yml b/.github/workflows/run-examples.yml index 74a1fa917c..1e2e08efc2 100644 --- a/.github/workflows/run-examples.yml +++ b/.github/workflows/run-examples.yml @@ -41,6 +41,7 @@ jobs: run: uv sync --frozen --group dev - name: Run examples + shell: bash env: LLM_API_KEY: ${{ secrets.LLM_API_KEY }} LLM_MODEL: openhands/claude-haiku-4-5-20251001 @@ -60,7 +61,6 @@ jobs: # - 16_llm_security_analyzer.py: requires user input # - 04_convo_with_api_sandboxed_server.py: requires sandbox API keys # - 04_vscode_with_docker_sandboxed_server.py: requires VSCode setup - set -e EXAMPLES=( "examples/01_standalone_sdk/02_custom_tools.py" "examples/01_standalone_sdk/03_activate_skill.py" @@ -286,6 +286,7 @@ jobs: - name: Read examples report for issue comment if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' id: read_report + shell: bash run: | if [ -f examples_report.md ]; then REPORT_CONTENT=$(cat examples_report.md)