Skip to content

Commit 3690a96

Browse files
ci: Add lightweight CI workflow for YAML config tests
- Add config.yml workflow to test YAML configuration functionality - Download tiny model artifact for integration testing - Build with tests enabled and run YAML-specific test suite - Isolated workflow to avoid impacting main CI performance Co-Authored-By: Jaime Mizrachi <[email protected]>
1 parent dc6510b commit 3690a96

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: YAML Config Tests
2+
3+
on:
4+
push:
5+
branches: [ "master", "devin/*" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
test-yaml-config:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
18+
- name: Dependencies
19+
id: depends
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install build-essential cmake
23+
24+
- name: Build
25+
id: cmake_build
26+
run: |
27+
cmake -B build -DLLAMA_BUILD_TESTS=ON -DLLAMA_BUILD_TOOLS=ON -DLLAMA_FATAL_WARNINGS=ON
28+
cmake --build build --config Release -j $(nproc)
29+
30+
- name: Download tiny model
31+
run: |
32+
mkdir -p models
33+
wget https://huggingface.co/ggml-org/models/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf -O models/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
34+
35+
- name: Test YAML config functionality
36+
run: |
37+
cd build
38+
ctest -R "test-config-yaml" --verbose --timeout 300

0 commit comments

Comments
 (0)