File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
FirebaseVertexAI/Tests/TestApp/Tests/Integration Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments