Skip to content

Commit

Permalink
ci checkout and sync workspace using hil
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik737 committed Dec 19, 2024
1 parent 0a1c9cc commit 6f9eb69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ 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
Expand All @@ -27,7 +30,8 @@ jobs:
- name: Run Test
run: |
CMD="hil --testbed oak4-pro --reservation-name 'dominik.zacek@luxonis.com' --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 --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
if [ -n "${{ github.event.inputs.depthai_version }}" ]; then
CMD="$CMD --depthai-version ${{ github.event.inputs.depthai_version }}"
fi
Expand Down

0 comments on commit 6f9eb69

Please sign in to comment.