From 348f40c4c1b731381aac34315f067b6ba540badd Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Wed, 5 Mar 2025 17:53:37 +0100 Subject: [PATCH] ci fixes --- .github/workflows/demo.yml | 2 +- seal5/utils.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 187a57e3..5d01d6c1 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -140,7 +140,7 @@ jobs: - name: Run the demo run: | source .venv/bin/activate - VERBOSE=${{ github.event.inputs.verbose }} PROGRESS=${{ github.event.inputs.progress }} LLVM_REF=${{ github.event.inputs.llvm_ref }} CCACHE=${{ matrix.ccache }} CLONE_DEPTH=${{ github.event.inputs.clone_depth }} BUILD_CONFIG=${{ github.event.inputs.build_config }} IGNORE_ERROR=${{ github.event.inputs.ignore_error }} TEST=${{ github.event.inputs.test }} INSTALL=${{ github.event.inputs.install }} DEPLOY=${{ github.event.inputs.deploy }} EXPORT=${{ github.event.inputs.export }} DEST=/tmp/seal5_llvm ${{ steps.ctx.outputs.program }} examples/${{ github.event.inputs.script }} + VERBOSE=${{ github.event.inputs.verbose }} PROGRESS=${{ github.event.inputs.progress }} LLVM_REF=${{ github.event.inputs.llvm_ref }} CCACHE=${{ matrix.ccache }} CLONE_DEPTH=${{ github.event.inputs.clone_depth }} BUILD_CONFIG=${{ github.event.inputs.build_config }} IGNORE_ERROR=${{ github.event.inputs.ignore_error }} TEST=${{ github.event.inputs.test }} INSTALL=${{ github.event.inputs.install }} DEPLOY=${{ github.event.inputs.deploy }} EXPORT=${{ matrix.export }} DEST=/tmp/seal5_llvm ${{ steps.ctx.outputs.program }} examples/${{ github.event.inputs.script }} - name: Generate Reports run: | source .venv/bin/activate diff --git a/seal5/utils.py b/seal5/utils.py index 3b83804a..bcbf806e 100644 --- a/seal5/utils.py +++ b/seal5/utils.py @@ -48,6 +48,8 @@ def str2bool(value, allow_none=False): return True if value in ["false", "off", "no"]: return False + if len(value) == 0: + return False assert False, f"Unhandled case: {value}"