Compare commits

...

2 Commits

Author SHA1 Message Date
Timmy Burn
483b3cdc68 ci: build standalone cmake target in smoke workflow for #50
All checks were successful
Smoke Test / smoke (pull_request) Successful in 30s
2026-04-20 11:50:54 -04:00
Timmy Burn
0248a85773 test: require standalone cmake smoke coverage for #50 2026-04-20 11:47:12 -04:00
2 changed files with 14 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ jobs:
find . -name '*.py' | grep -v llama-cpp-fork | xargs -r python3 -m py_compile
find . -name '*.sh' | xargs -r bash -n
echo "PASS: All files parse"
- name: Standalone CMake build and test
run: |
cmake -S . -B build -DTURBOQUANT_BUILD_TESTS=ON
cmake --build build
ctest --test-dir build --output-on-failure
- name: Secret scan
run: |
if grep -rE 'sk-or-|sk-ant-|ghp_|AKIA' . --include='*.yml' --include='*.py' --include='*.sh' 2>/dev/null | grep -v .gitea | grep -v llama-cpp-fork; then exit 1; fi

View File

@@ -0,0 +1,9 @@
from pathlib import Path
def test_smoke_workflow_builds_and_tests_standalone_cmake_target():
workflow = Path('.gitea/workflows/smoke.yml').read_text()
assert 'cmake -S . -B build -DTURBOQUANT_BUILD_TESTS=ON' in workflow
assert 'cmake --build build' in workflow
assert 'ctest --test-dir build --output-on-failure' in workflow