File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1616 - uses : actions/checkout@v4
1717 with :
1818 fetch-depth : 0
19- - name : Refresh models catalog
20- run : |
21- git fetch --depth 1 https://github.com/router-for-me/models.git main
22- git show FETCH_HEAD:models.json > internal/registry/models/models.json
2319 - run : git fetch --force --tags
2420 - uses : actions/setup-go@v4
2521 with :
Original file line number Diff line number Diff line change 1+ package registry
2+
3+ import "testing"
4+
5+ func TestEmbeddedModelsCatalogPassesStartupValidation (t * testing.T ) {
6+ if len (embeddedModelsJSON ) == 0 {
7+ t .Fatal ("embedded models catalog is empty" )
8+ }
9+
10+ if err := loadModelsFromBytes (embeddedModelsJSON , "test" ); err != nil {
11+ t .Fatalf ("embedded models catalog should pass startup validation: %v" , err )
12+ }
13+ }
You can’t perform that action at this time.
0 commit comments