diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b4f61b..e960dd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,12 +9,27 @@ on: permissions: read-all jobs: + compatibility: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-go@v6 + with: + go-version: "1.27.1" + - name: Verify the established Go floor and interpreter + run: | + test "$(go list -m -f '{{.GoVersion}}')" = "1.20" + test "$(go list -m -f '{{.Version}}' go.starlark.net)" = "v0.0.0-20260324133313-ffb3f39dd27a" + ci: + permissions: + contents: read + id-token: write # Reusable CI lives in 1set/meta — the single source of truth for every # Star* module's pipeline. Pinned to a commit SHA for supply-chain safety; # bump the pin when meta's workflow changes (Dependabot github-actions can # automate this). - uses: 1set/meta/.github/workflows/go-ci.yml@5d86667e7264f012655dab2644dfa44e09597445 + uses: 1set/meta/.github/workflows/go-ci.yml@23f088bcd6dce16c93e0056d7b70b4f4434208e8 with: go-floor: "1.20" doc-coverage: true diff --git a/Makefile b/Makefile index 8e56ebd..d9f5747 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ default: # CI bar: race + coverage profile (+ bench compile when present) ci: - $(GOTEST) -v -race -cover -covermode=atomic -coverprofile=coverage.txt -count 1 ./... + $(GOTEST) -v -race -cover -covermode=atomic -coverprofile=coverage.txt -count 2 ./... $(GOTEST) -v -parallel=4 -run="none" -benchtime="2s" -benchmem -bench=. ./... test: diff --git a/example_test.go b/example_test.go index bd9f1c6..360c688 100644 --- a/example_test.go +++ b/example_test.go @@ -1995,7 +1995,8 @@ def main(): main() `}, - {"CustomSQLFunctions", ` + // Give every function and SQL call the same fresh namespace on each run. + {"CustomSQLFunctions", strings.ReplaceAll(` load("sqlite", "connect", "register_function") def main(): @@ -2114,7 +2115,7 @@ def main(): print("✓ All custom SQL function tests passed") main() -`}, +`, "EXAMPLE_", uniqueFuncName("EXAMPLE")+"_")}, {"ExistOkFeature", ` load("sqlite", "connect")