Update workflow and improve test logging

Added environment configuration for GitHub Pages deployment in the build workflow and removed unused environment variable from test workflow. Enhanced logging in OllamaAPIIntegrationTest to include the external host address.
This commit is contained in:
Amith Koujalgi 2025-09-20 15:51:31 +05:30
parent f0c6ce2b8d
commit d6f5b5c313
2 changed files with 5 additions and 3 deletions

View File

@ -20,6 +20,10 @@ jobs:
permissions:
contents: read
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v5
- name: Set up JDK 21
@ -39,8 +43,6 @@ jobs:
uses: ./.github/workflows/run-tests.yml
with:
branch: ${{ github.head_ref || github.ref_name }}
env:
USE_EXTERNAL_OLLAMA_HOST: "false"
build-docs:
name: Build Documentation

View File

@ -106,7 +106,7 @@ class OllamaAPIIntegrationTest {
}
if (useExternalOllamaHost) {
LOG.info("Using external Ollama host...");
LOG.info("Using external Ollama host: {}", ollamaHost);
api = new OllamaAPI(ollamaHost);
} else {
throw new RuntimeException(