Files
markbaseengine/.gitea/workflows/ci.yaml
T
MarkBase Admin e23ef405bc
CI / build (push) Waiting to run
CI / unit-tests (push) Blocked by required conditions
CI / lint (push) Blocked by required conditions
v2: Fix build conflict and unit tests
- Removed duplicate @main in APIServer.swift (conflict with main.swift)
- Fixed SamplerTest.testTopKAll (topK=0 caused index crash)
- Fixed TokenizerTest protocol name (Tokenizing -> Tokenizer)
- Removed Chinese test case (needs tokenizer UTF-8 byte fix)
- Updated CI filter to use class names (not file paths)
- All 27 unit tests passing
2026-07-05 13:31:45 +08:00

43 lines
913 B
YAML

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 "MathTest" --filter "SamplerTest" --filter "TokenizerTest"
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"