Skip to content

feat: add packaging, CI, maturity warning, and comprehensive document… #1

feat: add packaging, CI, maturity warning, and comprehensive document…

feat: add packaging, CI, maturity warning, and comprehensive document… #1

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout code
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
# Install core dependencies (skip SOLLOL for now - it's in dev)
pip install torch transformers datasets peft accelerate sentencepiece protobuf psutil
pip install pytest flake8 black
- name: Check imports
run: |
python -c "import torch; print(f'PyTorch: {torch.__version__}')"
python -c "import transformers; print(f'Transformers: {transformers.__version__}')"
python -c "import peft; print(f'PEFT: {peft.__version__}')"
echo "✅ All core imports successful"
- name: Check code exists
run: |
test -f llamaforge.py
test -f llamaforge_interactive.py
test -f launch_distributed_training_direct.py
test -d src
echo "✅ All core modules present"
lint:
name: Code quality checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install linting tools
run: |
python -m pip install --upgrade pip
pip install flake8 black
- name: Check formatting with black
run: |
black --check . --extend-exclude="/(\.git|\.venv|__pycache__|build|dist|work|test_work|test_8bit)/" || true
- name: Lint with flake8
run: |
# Stop on syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=.git,__pycache__,.venv,build,dist,work,test_work,test_8bit
# Warn on complexity and style issues (but don't fail)
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=.git,__pycache__,.venv,build,dist,work,test_work,test_8bit