Skip to content

Depth Pixel Spacing Bug for Oblique Cases (DSTVO) #1009

Depth Pixel Spacing Bug for Oblique Cases (DSTVO)

Depth Pixel Spacing Bug for Oblique Cases (DSTVO) #1009

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Setup Dev Environment
run: |
pip install virtualenv
virtualenv .venv
source .venv/bin/activate
python3 -m pip install "nvidia-cuda-runtime==13.*"
CUDA_WHL_LIB_DIR="$(python3 -c 'import nvidia.cu13, os; print(os.path.join(nvidia.cu13.__path__[0], "lib"))')"
export LD_LIBRARY_PATH="${CUDA_WHL_LIB_DIR}:${LD_LIBRARY_PATH}"
echo "CUDA_WHL_LIB_DIR=${CUDA_WHL_LIB_DIR}" >> "${GITHUB_ENV}"
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "${GITHUB_ENV}"
./run setup
- name: Check formatting
run: |
source .venv/bin/activate
python3 -m pip install "nvidia-cuda-runtime==13.*"
python3 -c 'import sys; print(sys.executable)'
python3 -c 'import site; print(site.getsitepackages())'
python3 -m pip freeze
python3 -c 'from holoscan.core import *'
./run check -f
- name: Run Unit tests
run: |
source .venv/bin/activate
python3 -m pip install "nvidia-cuda-runtime==13.*"
./run test all unit
- name: Coverage
run: |
source .venv/bin/activate
python3 -m pip install "nvidia-cuda-runtime==13.*"
coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false
files: ./coverage.xml
test-pipeline-generator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
working-directory: tools/pipeline-generator
run: |
uv sync
- name: Run tests
working-directory: tools/pipeline-generator
run: |
uv run pytest