Skip to content

Commit

Permalink
Merge pull request #567 from luxonis/feat/gen3-hil-improvements
Browse files Browse the repository at this point in the history
Feat/gen3 hil improvements
  • Loading branch information
dominik737 authored Dec 19, 2024
2 parents 0a1c9cc + 574e073 commit 4ed6a97
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,29 @@ jobs:
platform: [RVC2] #TODO: add RVC4 platform

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Add HIL Tools to Path
run: |
echo "/home/$USER/hil_framework/lib_testbed/tools" >> $GITHUB_PATH
echo "PYTHONPATH="$PYTHONPATH:/home/$USER/hil_framework"" >> $GITHUB_ENV
echo "HIL_FRAMEWORK_PATH="/home/$USER/hil_framework"" >> $GITHUB_ENV
- name: Set model variable
run: |
if [ "${{ matrix.platform }}" = "RVC2" ]; then
echo "MODEL=oak_d_s2" >> $GITHUB_ENV
elif [ "${{ matrix.platform }}" = "RVC4" ]; then
echo "MODEL=oak4_pro" >> $GITHUB_ENV
fi
- name: Run Test
run: |
CMD="hil --testbed oak4-pro --reservation-name '[email protected]' --commands 'cd ~/Documents/source/depthai-experiments' 'git fetch' 'git checkout ${{ github.ref_name }}' 'git pull' 'python3 gen3_script_tester.py --environment-variables DEPTHAI_PLATFORM=${{ matrix.platform }} --virtual-display --path ./neural-networks/advanced-examples/object-detection/mobile-object-localizer"
export RESERVATION_NAME="https://github.com/${{ github.repository }}/actions/${{ github.run_id }}-${{ matrix.python-version }}-${{ matrix.platform }}"
CMD="hil --models $MODEL --reservation-name $RESERVATION_NAME --wait --sync-workspace --commands 'cd /tmp/depthai-experiments' 'python3 gen3_script_tester.py --environment-variables DEPTHAI_PLATFORM=${{ matrix.platform }} --virtual-display --path ./neural-networks/advanced-examples/object-detection/mobile-object-localizer"
if [ -n "${{ github.event.inputs.depthai_version }}" ]; then
CMD="$CMD --depthai-version ${{ github.event.inputs.depthai_version }}"
fi
CMD="$CMD'"
eval $CMD
#TODO: swap for hil --revision RVC4 when possible infrastructure-wise

0 comments on commit 4ed6a97

Please sign in to comment.