Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 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
20 changes: 8 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ on:
jobs:
test-go:
runs-on: ubuntu-latest
# This gates the job until a maintainer approves
environment: CI
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -35,32 +33,30 @@ jobs:
- name: Run Go tests
working-directory: ./go
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: go test ./...

test-java:
runs-on: ubuntu-latest
environment: CI
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.event.inputs.ref || github.ref }}
persist-credentials: false
- name: Set up JDK 21
- name: Set up JDK 24
uses: actions/setup-java@v4
with:
java-version: '21'
java-version: '24'
distribution: 'temurin'
cache: maven
- name: Run Java tests
working-directory: ./java
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: mvn -B test

test-javascript:
runs-on: ubuntu-latest
environment: CI
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -78,12 +74,11 @@ jobs:
- name: Run JavaScript tests
working-directory: ./javascript
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: node --test *.test.js

test-python:
runs-on: ubuntu-latest
environment: CI
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -99,5 +94,6 @@ jobs:
- name: Run Python tests
working-directory: ./python
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
run: pytest .
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
# Discover and run all .py files as tests
run: python -m unittest discover -p "*.py"
6 changes: 0 additions & 6 deletions javascript/grounding.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@

import { GoogleGenAI } from "@google/genai";

// Ensure the API key is set in your environment variables
if (!process.env.GEMINI_API_KEY) {
throw new Error("GEMINI_API_KEY environment variable not set.");
}

// Define the thinking model centrally
const MODEL_ID = "gemini-2.5-flash";

const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
Expand Down
Loading