Skip to content

Commit

Permalink
ci use hil models
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik737 committed Dec 19, 2024
1 parent 90aae16 commit 574e073
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,21 @@ jobs:
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: |
export RESERVATION_NAME="https://github.com/${{ github.repository }}/actions/${{ github.run_id }}-${{ matrix.python-version }}-${{ matrix.platform }}"
CMD="hil --testbed oak4-pro --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"
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 574e073

Please sign in to comment.