Compare commits
2 Commits
step35/104
...
fix/50
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
483b3cdc68 | ||
|
|
0248a85773 |
@@ -18,6 +18,11 @@ jobs:
|
|||||||
find . -name '*.py' | grep -v llama-cpp-fork | xargs -r python3 -m py_compile
|
find . -name '*.py' | grep -v llama-cpp-fork | xargs -r python3 -m py_compile
|
||||||
find . -name '*.sh' | xargs -r bash -n
|
find . -name '*.sh' | xargs -r bash -n
|
||||||
echo "PASS: All files parse"
|
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
|
- name: Secret scan
|
||||||
run: |
|
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
|
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
|
||||||
|
|||||||
9
tests/test_smoke_workflow.py
Normal file
9
tests/test_smoke_workflow.py
Normal 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
|
||||||
Reference in New Issue
Block a user