Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Whitestone
1da46dffd5 ci: build standalone CMake target in smoke workflow (#50) 2026-04-20 11:41:47 -04:00
2 changed files with 18 additions and 0 deletions

View File

@@ -22,3 +22,8 @@ jobs:
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
echo "PASS: No secrets"
- name: Standalone CMake build + ctest
run: |
cmake -S . -B build -DTURBOQUANT_BUILD_TESTS=ON
cmake --build build
ctest --test-dir build --output-on-failure

View File

@@ -0,0 +1,13 @@
from pathlib import Path
WORKFLOW = Path('.gitea/workflows/smoke.yml').read_text(encoding='utf-8')
def test_smoke_workflow_builds_standalone_cmake_target():
assert 'cmake -S . -B build -DTURBOQUANT_BUILD_TESTS=ON' in WORKFLOW
assert 'cmake --build build' in WORKFLOW
def test_smoke_workflow_runs_ctest_for_roundtrip_validation():
assert 'ctest --test-dir build --output-on-failure' in WORKFLOW