mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-22 05:37:01 +00:00
Add GitHub Actions CI/CD pipeline and test framework
- Add .github/workflows/build-test.yml for automated testing - Add tests/ directory with TypeScript test runner - Add docs/CICD.md documentation - Remove .gitlab-ci.yml (migrated to GitHub Actions) - Update .gitignore for test artifacts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
30
tests/testcases/inference/TC-INFERENCE-001.yml
Normal file
30
tests/testcases/inference/TC-INFERENCE-001.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
id: TC-INFERENCE-001
|
||||
name: Model Pull
|
||||
suite: inference
|
||||
priority: 1
|
||||
timeout: 600000
|
||||
|
||||
dependencies:
|
||||
- TC-RUNTIME-003
|
||||
|
||||
steps:
|
||||
- name: Check if model exists
|
||||
command: docker exec ollama37 ollama list | grep -q "gemma3:4b" && echo "Model exists" || echo "Model not found"
|
||||
|
||||
- name: Pull model if needed
|
||||
command: docker exec ollama37 ollama list | grep -q "gemma3:4b" || docker exec ollama37 ollama pull gemma3:4b
|
||||
timeout: 600000
|
||||
|
||||
- name: Verify model available
|
||||
command: docker exec ollama37 ollama list
|
||||
|
||||
criteria: |
|
||||
The gemma3:4b model should be available for inference.
|
||||
|
||||
Expected:
|
||||
- Model is either already present or successfully downloaded
|
||||
- "ollama list" shows gemma3:4b in the output
|
||||
- No download errors
|
||||
|
||||
Accept if model already exists (skip download).
|
||||
Model size is ~3GB, download may take time.
|
||||
Reference in New Issue
Block a user