Skip to content

Commit 7059b0a

Browse files
committed
Set VTXIntegrationImagen based on event_name
1 parent 57db276 commit 7059b0a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/vertexai.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
needs: spm-package-resolved
103103
env:
104104
TEST_RUNNER_FIRAAppCheckDebugToken: ${{ secrets.VERTEXAI_INTEGRATION_FAC_DEBUG_TOKEN }}
105+
TEST_RUNNER_VTXIntegrationImagen: ${{ github.event_name == 'schedule' }}
105106
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
106107
secrets_passphrase: ${{ secrets.GHASecretsGPGPassphrase1 }}
107108
steps:

FirebaseVertexAI/Tests/TestApp/Tests/Integration/IntegrationTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ final class IntegrationTests: XCTestCase {
243243
// MARK: - Imagen
244244

245245
func testGenerateImage_inlineData() async throws {
246+
if let imagenEnvVar = ProcessInfo.processInfo.environment["VTXIntegrationImagen"] {
247+
XCTFail("VTXIntegrationImagen: \(imagenEnvVar)")
248+
} else {
249+
XCTFail("VTXIntegrationImagen is undefined.")
250+
}
251+
246252
let imagePrompt = """
247253
A realistic photo of a male lion, mane thick and dark, standing proudly on a rocky outcrop
248254
overlooking a vast African savanna at sunset. Golden hour light, long shadows, sharp focus on

0 commit comments

Comments
 (0)