Skip to content

Commit

Permalink
Temporarily disabled in-process embedding model tests (langchain4j#48)
Browse files Browse the repository at this point in the history
We are out of free Git LFS quota
  • Loading branch information
langchain4j authored Jul 24, 2023
1 parent 80f71fe commit 540741c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Pull LFS files
run: git lfs pull

- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'

- name: Test
run: mvn --batch-mode test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package dev.langchain4j.model.embedding;

import dev.langchain4j.data.embedding.Embedding;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

class ALL_MINILM_L6_V2_Q_EmbeddingModelTest {

@Test
@Disabled("Temporary disabling. This test should run only when this or used (e.g. langchain4j-embeddings) module(s) change")
void should_embed() {

EmbeddingModel model = new ALL_MINILM_L6_V2_Q_EmbeddingModel();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package dev.langchain4j.model.embedding;

import dev.langchain4j.data.embedding.Embedding;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

class ALL_MINILM_L6_V2_EmbeddingModelTest {

@Test
@Disabled("Temporary disabling. This test should run only when this or used (e.g. langchain4j-embeddings) module(s) change")
void should_embed() {

EmbeddingModel model = new ALL_MINILM_L6_V2_EmbeddingModel();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package dev.langchain4j.model.embedding;

import dev.langchain4j.data.embedding.Embedding;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

class E5_SMALL_V2_Q_EmbeddingModelTest {

@Test
@Disabled("Temporary disabling. This test should run only when this or used (e.g. langchain4j-embeddings) module(s) change")
void should_embed() {

EmbeddingModel model = new E5_SMALL_V2_Q_EmbeddingModel();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package dev.langchain4j.model.embedding;

import dev.langchain4j.data.embedding.Embedding;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

class E5_SMALL_V2_EmbeddingModelTest {

@Test
@Disabled("Temporary disabling. This test should run only when this or used (e.g. langchain4j-embeddings) module(s) change")
void should_embed() {

EmbeddingModel model = new E5_SMALL_V2_EmbeddingModel();
Expand Down

0 comments on commit 540741c

Please sign in to comment.