Skip to content

Gen3 Experiments Runnability Test #31

Gen3 Experiments Runnability Test

Gen3 Experiments Runnability Test #31

Workflow file for this run

name: Gen3 Experiments Runnability Test
on:
workflow_dispatch:
inputs:
depthai_version:
description: 'Version of DepthAI to install for the test run. If specified the version will override version specified in requirements.txt'
required: false
# push:
# branches:
# - gen3
jobs:
test:
runs-on: ["self-hosted", "testbed-runner"]
strategy:
matrix:
python-version: ["3.10", "3.12"]
platform: [RVC2] #TODO: add RVC4 platform
fail-fast: false
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: |
export RESERVATION_NAME="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#${{ matrix.python-version}}-${{ matrix.platform }}"
hil --models $MODEL --reservation-name $RESERVATION_NAME --wait --sync-workspace --dockerfile /tmp/depthai-experiments/test/Dockerfile --docker-args PYTHON_VERSION=${{ matrix.python-version }}