mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-10-13 17:08:57 +02:00
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:
parent
f0c6ce2b8d
commit
d6f5b5c313
6
.github/workflows/build-on-pull-request.yml
vendored
6
.github/workflows/build-on-pull-request.yml
vendored
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user