Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add comprehensive JSON API implementation for analytics and sys… #500

Merged
merged 15 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/golangci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Install dependencies
run: make check-tensorflow

- name: Download tflite_c
run: make download-tflite

- name: Set environment variables for CGO
run: |
echo "CGO_ENABLED=1" >> $GITHUB_ENV
Expand Down
25 changes: 25 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,31 @@ tasks:
default:
deps: [labels-zip, native-target]

# Task for running tests
test:
desc: Run tests for the application
cmds:
- go test ./... {{.TEST_FLAGS}}
vars:
TEST_FLAGS: '{{default "" .CLI_ARGS}}'

# Task for running tests with verbose output
test-verbose:
desc: Run tests with verbose output
cmds:
- task: test
vars: {CLI_ARGS: "-v"}

# Task for running tests with coverage report
test-coverage:
desc: Run tests with coverage report
cmds:
- mkdir -p coverage
- go test ./... -coverprofile=coverage/coverage.out {{.TEST_FLAGS}}
- go tool cover -html=coverage/coverage.out -o coverage/coverage.html
vars:
TEST_FLAGS: '{{default "" .CLI_ARGS}}'

native-target:
cmds:
- task: "{{OS}}_{{ARCH}}"
Expand Down
6 changes: 5 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ require (
github.com/smallnest/ringbuffer v0.0.0-20230728150354-35801fa39d0e
github.com/spf13/cobra v1.9.1
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.10.0
github.com/tphakala/flac v0.0.0-20241217200312-20d6d98f5ee3
github.com/tphakala/go-tflite v0.0.0-20241022031318-2dad4328ec9e
golang.org/x/crypto v0.34.0
Expand All @@ -38,7 +39,10 @@ require (

require (
cloud.google.com/go/compute/metadata v0.3.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/eaburns/bit v0.0.0-20131029213740-7bd5cd37375d // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/stretchr/objx v0.5.2 // indirect
)

require (
Expand All @@ -52,7 +56,7 @@ require (
github.com/gorilla/mux v1.6.2 // indirect
github.com/gorilla/securecookie v1.1.2 // indirect
github.com/gorilla/sessions v1.4.0
github.com/gorilla/websocket v1.5.3 // indirect
github.com/gorilla/websocket v1.5.3
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
Expand Down
Loading
Loading