Skip to content

fix: remove vulnerable torch nightly pin #10

fix: remove vulnerable torch nightly pin

fix: remove vulnerable torch nightly pin #10

name: CppMega self-hosted CI
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
concurrency:
group: cppmega-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
mac-contracts:
name: macOS model and data contracts
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: [self-hosted, macOS, ARM64, cppmega-macos]
timeout-minutes: 20
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Run focused contract suite
shell: bash
run: |
set -euo pipefail
python_bin=/Volumes/external/sources/cppmega.mlx/.venv/bin/python
test -x "${python_bin}"
"${python_bin}" -m pytest -q \
tests/test_custom_embedding.py \
tests/test_data_pipeline_contracts.py \
tests/test_data_prep_parquet_to_megatron.py \
tests/test_domain_embedding.py \
tests/test_domain_megatron_sidecars.py \
tests/test_dsa_indexer_fused_patch.py \
tests/test_fastmtp_layer.py \
tests/test_graph_route_attention_bias_patch.py \
tests/test_nebius_h200_megatron_cpp_generation_eval.py \
tests/test_nebius_h200_megatron_cpp_world_sweep.py \
tests/test_structure_dataset_patch_bridge.py \
tests/test_structure_embedding.py \
tests/test_subset_megatron_sidecar_prefix.py \
tests/test_build_macro_routes_megatron_bundle.py \
tests/test_dsa_sparse_attention.py \
tests/test_publish_megatron_bundle_to_nebius_s3.py \
tests/test_restore_megatron_bundle_from_nebius_s3.py \
tests/test_workflow_runner_policy.py
"${python_bin}" scripts/data/verify_tokenizer_contract.py \
--root /Volumes/external/sources
git diff --check
linux-portable:
name: Linux portable data contracts
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: [self-hosted, Linux, X64, cppmega]
timeout-minutes: 20
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.13"
- name: Install portable test dependencies
run: python -m pip install --disable-pip-version-check pytest numpy pyarrow tokenizers boto3 zstandard
- name: Run portable data and bundle suite
run: |
set -euo pipefail
python -m pytest -q \
tests/test_data_pipeline_contracts.py \
tests/test_data_prep_parquet_to_megatron.py \
tests/test_domain_megatron_sidecars.py \
tests/test_nebius_h200_megatron_cpp_generation_eval.py \
tests/test_nebius_h200_megatron_cpp_world_sweep.py \
tests/test_subset_megatron_sidecar_prefix.py \
tests/test_build_macro_routes_megatron_bundle.py \
tests/test_publish_megatron_bundle_to_nebius_s3.py \
tests/test_restore_megatron_bundle_from_nebius_s3.py \
tests/test_workflow_runner_policy.py
git diff --check