mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-09-16 03:39:05 +02:00
Merge pull request #146 from ollama4j/amithkoujalgi-patch-1
All checks were successful
Mark stale issues / stale (push) Successful in 34s
All checks were successful
Mark stale issues / stale (push) Successful in 34s
Update run-tests.yml
This commit is contained in:
commit
74b2ab13e7
23
.github/workflows/run-tests.yml
vendored
23
.github/workflows/run-tests.yml
vendored
@ -16,10 +16,26 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout target branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.branch }}
|
ref: ${{ github.event.inputs.branch }}
|
||||||
|
|
||||||
|
- name: Use workflow from checked out branch
|
||||||
|
run: |
|
||||||
|
if [ -f .github/workflows/run-tests.yml ]; then
|
||||||
|
echo "Using workflow from checked out branch."
|
||||||
|
cp .github/workflows/run-tests.yml /tmp/run-tests.yml
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "Workflow file not found in checked out branch."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Set up Ollama
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://ollama.com/install.sh | sh
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@ -32,4 +48,7 @@ jobs:
|
|||||||
run: mvn clean test -Punit-tests
|
run: mvn clean test -Punit-tests
|
||||||
|
|
||||||
- name: Run integration 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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user