feat: add Jetson contributor validation path

This commit is contained in:
Joseph Magly
2026-08-21 20:12:35 -04:00
parent 1e870ccee0
commit 06e80af7b6
23 changed files with 1128 additions and 30 deletions
+39
View File
@@ -225,6 +225,45 @@ jobs:
scripts/check_supply_chain_policy.py
scripts/gemma4_12b_recursive_loop.py || true
arm64-preflight:
name: Linux ARM64 preflight
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
runs-on: ubuntu-24.04-arm
timeout-minutes: 10
env:
CUDA_VISIBLE_DEVICES: ""
HF_DATASETS_OFFLINE: "1"
HF_HUB_DISABLE_TELEMETRY: "1"
HF_HUB_OFFLINE: "1"
TRANSFORMERS_OFFLINE: "1"
TEST_ENV: /tmp/obliteratus-arm64-preflight
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
cache-dependency-path: |
pyproject.toml
uv.lock
- name: Install locked CPU runtime
run: |
python -m pip install "uv==${UV_VERSION}"
UV_PROJECT_ENVIRONMENT="$TEST_ENV" \
uv sync --locked --no-default-groups --extra dev --no-editable
- name: Verify ARM64 package and core runtime
run: |
"$TEST_ENV/bin/python" -c \
'import platform; assert platform.machine().lower() in {"aarch64", "arm64"}'
"$TEST_ENV/bin/python" -m build --wheel
"$TEST_ENV/bin/python" -c 'import obliteratus; print(obliteratus.__version__)'
"$TEST_ENV/bin/python" -m obliteratus --help
"$TEST_ENV/bin/python" -m pytest \
tests/test_module_imports.py tests/test_device_boundaries.py \
tests/test_jetson_support_tooling.py -q --no-cov
pr-core:
name: Pull request core
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/main')