Skip to content

Commit

Permalink
run-tests.yaml: Make sure the script errors out if any call fails
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Rønningstad <[email protected]>
  • Loading branch information
oyvindronningstad committed Jan 11, 2024
1 parent a90e928 commit 38131ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/prepare_and_run_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ runs:
working-directory: tests
shell: sh
run: |
set -e
export ZEPHYR_BASE=$(pwd)/../zephyr-clone
export ZEPHYR_TOOLCHAIN_VARIANT=${{ inputs.zephyr_toolchain }}
${{ inputs.zephyr_toolchain == 'zephyr' && 'export ZEPHYR_SDK_INSTALL_DIR=$(pwd)/../zephyr-sdk' || '' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
- name: Generate and install zcbor package
run: |
$ErrorActionPreference="Stop"
python build bdist_wheel
pip install dist/zcbor-$env:ZCBOR_VERSION-py3-none-any.whl
pip uninstall -y zcbor
Expand Down Expand Up @@ -131,6 +132,7 @@ jobs:
- name: Run python release tests
working-directory: tests/scripts
run: |
set -e
echo -n ${{ github.head_ref }} > HEAD_REF
python3 -m unittest test_versions
rm HEAD_REF
Expand Down

0 comments on commit 38131ab

Please sign in to comment.