Feature/run jetson e2e tests (#4)
ci/woodpecker/push/02-build-push Pipeline was successful

* Run tests

* Run tests

* Run tests

* Run tests

* Added rebuild

* Added files for e2e tests

* Added rebuild

* Added rebuild

* Added biuld TensorRT flag

* Changed to use NumPy 1.x for Jetson

* Make universal invocation

* Make Cython constans

* Changed to prepare onnx

* Changed smoke-test to wait AI conversion

* Added step for model conversion

* Changed to not run step in parallel

* Push model to docker registry

* Push model to docker registry

* Push model to docker registry
This commit is contained in:
Roman Meshko
2026-05-05 21:44:51 +03:00
committed by GitHub
parent a659631151
commit 6ad4b700dd
23 changed files with 501 additions and 112 deletions
+11 -4
View File
@@ -1,6 +1,7 @@
from setuptools import setup, Extension
from Cython.Build import cythonize
import numpy as np
import os
SRC = "src"
np_inc = [np.get_include(), SRC]
@@ -18,16 +19,22 @@ extensions = [
Extension('inference', [f'{SRC}/inference.pyx'], include_dirs=np_inc),
]
try:
import tensorrt # pyright: ignore[reportMissingImports]
build_tensorrt = os.environ.get("BUILD_TENSORRT_EXTENSIONS", "").lower() in ("1", "true", "yes")
if not build_tensorrt:
try:
import tensorrt # pyright: ignore[reportMissingImports]
build_tensorrt = True
except ImportError:
build_tensorrt = False
if build_tensorrt:
extensions.append(
Extension('engines.tensorrt_engine', [f'{SRC}/engines/tensorrt_engine.pyx'], include_dirs=np_inc)
)
extensions.append(
Extension('engines.jetson_tensorrt_engine', [f'{SRC}/engines/jetson_tensorrt_engine.pyx'], include_dirs=np_inc)
)
except ImportError:
pass
setup(
name="azaion.detections",