V3 parallel nn rvc4 fix #2161
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DepthAI Core HIL Testing | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- v3_develop | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- v3_develop | |
# Only allow latest run on same branch to be tested | |
concurrency: | |
group: ci-tests-${{ github.ref }}-1 | |
cancel-in-progress: true | |
jobs: | |
# Testing | |
linux_rvc2_test: | |
env: | |
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | |
strategy: | |
matrix: | |
arch: ['x64'] | |
flavor: ['vanilla', 'asan-ubsan', 'tsan'] | |
fail-fast: false | |
runs-on: ['self-hosted', 'testbed-runner'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Export GitHub Actions cache environment variables | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | |
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
- name: Prepare HIL Framework | |
run: source scripts/hil/prepare_hil_framework.sh | |
- name: Configure, Build and Test | |
run: | | |
export RESERVATION_NAME="https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID#rvc2-${{ matrix.flavor }}" | |
exec hil --capabilities depthai-core-hil --platforms rvc2 --reservation-name $RESERVATION_NAME --wait --sync-workspace --commands 'cd /tmp/depthai-core|| exit' 'scripts/hil/run_hil_tests.sh ${{ matrix.flavor }} --rvc2' | |
# Testing | |
linux_rvc4_test: | |
env: | |
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | |
strategy: | |
matrix: | |
arch: ['x64'] | |
flavor: ['vanilla'] | |
rvc4os: ['r851.1.2', '1.4.1'] | |
fail-fast: false | |
runs-on: ['self-hosted', 'testbed-runner'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Prepare HIL Framework | |
run: source scripts/hil/prepare_hil_framework.sh | |
- name: Configure, Build and Test | |
run: | | |
export RESERVATION_NAME="https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID#rvc4-${{ matrix.rvc4os }}-${{ matrix.flavor }}" | |
exec hil --models oak4_pro --reservation-name $RESERVATION_NAME --wait --sync-workspace --rvc4-os-version ${{ matrix.rvc4os }} --commands 'cd /tmp/depthai-core|| exit' 'scripts/hil/run_hil_tests.sh ${{ matrix.flavor }} --rvc4' | |
windows_rvc2_rvc4_test: | |
runs-on: ['self-hosted', 'windows'] | |
env: | |
LOCALAPPDATA: "C:/actions-runner/vcpkg_cache" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Configure, Build and Test | |
run: | | |
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D'DEPTHAI_BUILD_EXAMPLES=ON' -D'DEPTHAI_BUILD_PYTHON=ON' -D'DEPTHAI_BUILD_TESTS=ON' -DDEPTHAI_PYTHON_ENABLE_TESTS=ON -DDEPTHAI_TEST_EXAMPLES=ON -DDEPTHAI_PYTHON_TEST_EXAMPLES=ON -DDEPTHAI_PYTHON_ENABLE_EXAMPLES=ON | |
cmake --build build --parallel 4 --config Release | |
cd tests | |
python run_tests.py |