Skip to content

Commit c488823

Browse files
committed
fix errors
1 parent b868e41 commit c488823

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/python-main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ jobs:
547547
"$PYBIN" -m pip install --force-reinstall $wheel
548548
549549
# Smoke test: fail hard on any exception or version mismatch
550-
EXPECTED_VERSION="$ver" python bindings/python/ci/smoke_depthai.py
550+
EXPECTED_VERSION="$ver" "$PYBIN" bindings/python/ci/smoke_depthai.py
551551
552552
# This job builds wheels for ARM64 arch
553553
build-linux-arm64:
@@ -724,6 +724,8 @@ jobs:
724724
run: |
725725
$env:PYTHONIOENCODING = 'utf-8'
726726
727+
$ErrorActionPreference = "Stop" # Fail on any error
728+
727729
# Resolve the exact dev version (includes commit hash)
728730
$ver = python -c "import os,sys,pathlib; sys.path.insert(0,str(pathlib.Path('bindings/python').resolve())); import find_version as v; print(v.get_package_dev_version(os.environ['BUILD_COMMIT_HASH']))"
729731
Write-Host "Installing depthai==$ver using:"; python -VV
@@ -736,7 +738,8 @@ jobs:
736738
python -m pip install --force-reinstall bindings/python/wheelhouse/audited/$wheel_name
737739
738740
# Smoke test (no heredoc; YAML-safe). Fail on import error or version mismatch.
739-
$env:EXPECTED_VERSION = $ver python bindings/python/ci/smoke_depthai.py
741+
$env:EXPECTED_VERSION = $ver
742+
python bindings/python/ci/smoke_depthai.py
740743
release:
741744
if: startsWith(github.ref, 'refs/tags/v')
742745
# needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos-x86_64, build-macos-arm64, build-linux-x86_64, build-linux-arm64]

0 commit comments

Comments
 (0)