forked from Mirror/ollama4j
		
	Enhance CI workflow and refactor integration tests
- Added setup step for Ollama installation in the GitHub Actions workflow. - Updated environment variables for integration tests to utilize an external Ollama host. - Refactored test method names in OllamaAPIIntegrationTest for clarity and consistency, changing 'testAskModel' to 'testGenerate'. - Introduced new tests for image processing from URLs and files, while removing outdated tests for improved test suite relevance.
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/run-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/run-tests.yml
									
									
									
									
										vendored
									
									
								
							| @@ -20,6 +20,10 @@ jobs: | ||||
|         with: | ||||
|           ref: ${{ github.event.inputs.branch }} | ||||
|  | ||||
|       - name: Set up Ollama | ||||
|         run: | | ||||
|           curl -fsSL https://ollama.com/install.sh | sh | ||||
|  | ||||
|       - name: Set up JDK 17 | ||||
|         uses: actions/setup-java@v3 | ||||
|         with: | ||||
| @@ -32,4 +36,7 @@ jobs: | ||||
|         run: mvn clean test -Punit-tests | ||||
|  | ||||
|       - name: Run integration tests | ||||
|         run: mvn clean verify -Pintegration-tests | ||||
|         run: mvn clean verify -Pintegration-tests | ||||
|         env: | ||||
|           USE_EXTERNAL_OLLAMA_HOST: "true" | ||||
|           OLLAMA_HOST: "http://localhost:11434" | ||||
		Reference in New Issue
	
	Block a user
	 amithkoujalgi
					amithkoujalgi