forked from Mirror/ollama4j
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:
6
.github/workflows/build-on-pull-request.yml
vendored
6
.github/workflows/build-on-pull-request.yml
vendored
@@ -20,6 +20,10 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
@@ -39,8 +43,6 @@ jobs:
|
|||||||
uses: ./.github/workflows/run-tests.yml
|
uses: ./.github/workflows/run-tests.yml
|
||||||
with:
|
with:
|
||||||
branch: ${{ github.head_ref || github.ref_name }}
|
branch: ${{ github.head_ref || github.ref_name }}
|
||||||
env:
|
|
||||||
USE_EXTERNAL_OLLAMA_HOST: "false"
|
|
||||||
|
|
||||||
build-docs:
|
build-docs:
|
||||||
name: Build Documentation
|
name: Build Documentation
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ class OllamaAPIIntegrationTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (useExternalOllamaHost) {
|
if (useExternalOllamaHost) {
|
||||||
LOG.info("Using external Ollama host...");
|
LOG.info("Using external Ollama host: {}", ollamaHost);
|
||||||
api = new OllamaAPI(ollamaHost);
|
api = new OllamaAPI(ollamaHost);
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException(
|
throw new RuntimeException(
|
||||||
|
|||||||
Reference in New Issue
Block a user