v2: Initial clean branch with unit tests + CI/CD pipeline
- Started from ac75faa (initial E4B-MarkBase integration)
- Kept Sources/ (all engine code) + Package.swift + .gitignore
- Removed all ad-hoc tests, documentation, scripts, Python files
- Added Tests/00_Unit/ (MathTest, TokenizerTest, SamplerTest)
- Added .gitea/workflows/ci.yaml (build + unit tests + lint)
- Added Scripts/check_resources.sh (memory-aware test runner)
- Added Tests/Manifest.json (resource requirements for all tests)
- Focus: 4-bit quantized models only
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ v2 ]
|
||||
pull_request:
|
||||
branches: [ v2 ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build Swift
|
||||
run: swift build -c debug
|
||||
|
||||
- name: Build Release
|
||||
run: swift build -c release
|
||||
|
||||
unit-tests:
|
||||
needs: build
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run Unit Tests
|
||||
run: swift test --filter "00_Unit"
|
||||
|
||||
lint:
|
||||
needs: build
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Check for debug prints
|
||||
run: |
|
||||
if grep -r "print(" Sources/MarkBase/ --include="*.swift" | grep -v "//.*print" | grep -v "Error"; then
|
||||
echo "WARNING: Debug print() found in Sources/"
|
||||
exit 0
|
||||
fi
|
||||
echo "No debug prints found"
|
||||
Reference in New Issue
Block a user