Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 21 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Restore cached cookies
id: cache-cookies-restore
uses: actions/cache/restore@v4
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
path: |
cookies
key: ${{ runner.os }}-cookies
go-version: '1.24'
- name: Create .env file from secrets
run: |
cat > .env << EOF
OPENAI_TOKEN=${{ secrets.OPENAI_TOKEN }}
GOPHER_CLIENT_TOKEN=${{ secrets.GOPHER_CLIENT_TOKEN }}
GOPHER_CLIENT_URL=${{ secrets.GOPHER_CLIENT_URL }}
GOPHER_CLIENT_TIMEOUT=${{ secrets.GOPHER_CLIENT_TIMEOUT }}
EOF
- name: Run tests
run: make test

ready-to-merge:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
runs-on: ubuntu-latest

- name: Verify that merging is OK
run: |
if grep -rE 'DO[ ]NOT[ ]MERGE|[ ]FIXME' .; then
exit 1
fi
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Verify that merging is OK
run: |
if grep -rE 'DO[ ]NOT[ ]MERGE|[ ]FIXME' .; then
exit 1
fi
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ test-verbose: deps ## Run tests with verbose output
@mkdir -p $(COVERAGE_DIR)
@$(GOTEST) $(TEST_FLAGS) $(TEST_ARGS)

.PHONY: test-agent
test-agent: deps ## Run only agent package tests (lightweight)
@echo "Running agent package tests..."
@mkdir -p $(COVERAGE_DIR)
@$(GOTEST) -v -count=1 -p=1 -coverprofile=$(COVERAGE_DIR)/coverage.txt -covermode=atomic ./agent

.PHONY: coverage
coverage: test ## Generate and display coverage report
@echo "Generating coverage report..."
Expand Down
119 changes: 0 additions & 119 deletions agent/agent.go

This file was deleted.

13 changes: 0 additions & 13 deletions agent/agent_suite_test.go

This file was deleted.

45 changes: 0 additions & 45 deletions agent/agent_test.go

This file was deleted.

109 changes: 0 additions & 109 deletions agent/twitter.go

This file was deleted.

7 changes: 3 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ import (
)

type Config struct {
BaseUrl string `envconfig:"GOPHER_CLIENT_URL" default:"https://data.gopher-ai.com/api"`
Timeout time.Duration `envconfig:"GOPHER_CLIENT_TIMEOUT" default:"60s"`
Token string `envconfig:"GOPHER_CLIENT_TOKEN"`
OpenAIToken string `envconfig:"OPENAI_TOKEN"`
BaseUrl string `envconfig:"GOPHER_CLIENT_URL" default:"https://data.gopher-ai.com/api"`
Timeout time.Duration `envconfig:"GOPHER_CLIENT_TIMEOUT" default:"60s"`
Token string `envconfig:"GOPHER_CLIENT_TOKEN"`
}

// LoadConfig loads the Config from environment variables.
Expand Down
4 changes: 0 additions & 4 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ var _ = Describe("Config", func() {
Equal("https://data.gopher-ai.com/api"), // default
Equal("https://gopher-data.dev.masalabs.ai/api"), // dev from .env
))
Expect(cfg.Token).To(SatisfyAny(
Equal(""), // default
Equal("rv53jbsoZieW4jOUdArHPmYGxlOiz4UvTyZv2h5bkbSjTU7J"), // dev from .env
))
})
})

Expand Down
Loading