Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

Merge PR #1309

Nandakishorf7f5fd5230e0
diff --cc .github/workflows/go.yml
index 53b1ef57,520d9ec5..b9f36d0c
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@@ -134,8 -132,23 +134,23 @@@ jobs
# case fails here, and adding one means raising this number.
- name: No test was skipped
if: ${{ !cancelled() }}
- run: python laya-go/scripts/check_test_json.py "$RUNNER_TEMP/go-test.json" --min-tests 1603
+ run: python laya-go/scripts/check_test_json.py "$RUNNER_TEMP/go-test.json" --min-tests 1754
+ # The samples are a nested module (they link the cgo onnx module), so the root steps do not
+ # see them. They must keep building against the API.
+ - name: The samples' email questions are what Python records now
+ run: python laya-go/samples/scripts/gen_email_golden.py --check
+ - name: The samples build and their tests pass
+ working-directory: laya-go/samples
+ run: go vet ./... && go build ./... && go test -count=1 -json ./... > "$RUNNER_TEMP/go-samples.json"
+ - name: No samples test was skipped
+ if: ${{ !cancelled() }}
+ run: python laya-go/scripts/check_test_json.py "$RUNNER_TEMP/go-samples.json" --min-tests 2
+ # Samples only: it does not guard the root module, whose own steps build it without cgo.
+ - name: The samples build without cgo
+ working-directory: laya-go/samples
+ run: CGO_ENABLED=0 go build ./...
+
# go.mod declares go 1.22, so that is what a consumer may build with.
- name: Run the tests on the oldest supported Go
working-directory: laya-go