Skip to content

Commit f01945a

Browse files
committed
CI: retry failed tests
1 parent eeef35d commit f01945a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- name: Build with JDK ${{ matrix.java_version }}
2727
run: mvn -U -B --fail-at-end -DskipOllamaITs clean install
2828
env:
29+
LC4J_GLOBAL_TEST_RETRY_ENABLED: true
2930
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
3031
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
3132
AZURE_OPENAI_KEY: ${{ secrets.AZURE_OPENAI_KEY }}

langchain4j-http-client-spring-restclient/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@
4242
<scope>test</scope>
4343
</dependency>
4444

45+
<dependency>
46+
<!-- needed for automatic test retries (GlobalTestRetryExtension) -->
47+
<groupId>dev.langchain4j</groupId>
48+
<artifactId>langchain4j-core</artifactId>
49+
<version>${langchain4j.stable.version}</version>
50+
<classifier>tests</classifier>
51+
<type>test-jar</type>
52+
<scope>test</scope>
53+
</dependency>
54+
4555
<dependency>
4656
<groupId>org.apache.httpcomponents.client5</groupId>
4757
<artifactId>httpclient5</artifactId>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
junit.jupiter.extensions.autodetection.enabled=true

0 commit comments

Comments
 (0)