Skip to content

Update INSTRUCTIONS.md #39

Update INSTRUCTIONS.md

Update INSTRUCTIONS.md #39

Workflow file for this run

name: Helix-TTD Core CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
# Install dependencies required by setup.py (just in case)
pip install cryptography rich colorama
# We don't need 'pip install -e .' if we run python directly,
# but we do it to check setup.py validity.
pip install -e .
- name: Debug File Structure (See what is actually here)
run: |
echo "📂 Root Directory:"
ls -la
echo "📂 CLI Directory:"
ls -la cli/ || echo "❌ CLI dir missing"
- name: Verify CLI (Direct Python Execution)
env:
PYTHONPATH: .
run: |
# Run python directly to avoid path issues
python3 helix.py version
- name: Run Integration Suite (The Golden Path)
env:
PYTHONPATH: .
run: |
# 1. Create Artifacts Directory
mkdir -p artifacts
# 2. Mint New Agent
echo "🧬 Minting Agent..."
python3 helix.py new-agent --custodian "CI_PIPELINE_KEY" --name "Test_Agent_01" --output-dir artifacts
# 3. Verify Agent
echo "🔍 Verifying Agent..."
python3 helix.py verify --dbc artifacts/*.dbc.json --suitcase artifacts/*.suitcase.json
# 4. Update State
echo "🔄 Updating State..."
python3 helix.py update-state --dbc artifacts/*.dbc.json --suitcase artifacts/*.suitcase.json --state ACTIVE --reason "CI Pipeline Validation"
# 5. List Agents
python3 helix.py list --directory artifacts
- name: Assert Artifacts Exist
run: |
if [ -f artifacts/*.dbc.json ] && [ -f artifacts/*.suitcase.json ]; then
echo "✅ All artifacts generated successfully."
else
echo "❌ Missing artifacts."
ls -R artifacts
exit 1
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: helix-test-output-${{ matrix.python-version }}
path: artifacts/