Skip to content

Commit

Permalink
Adding build step for better monitoring of eventual issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturOle committed Aug 29, 2024
1 parent 2901627 commit 98a8745
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Build image
run: docker compose -f ./docker/build_dev/docker-compose.yml build

- name: Build package
run: docker compose -f ./docker/build_dev/docker-compose.yml up --abort-on-container-exit

Expand All @@ -22,6 +25,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Build
run: docker compose -f ./docker/unit_tests/docker-compose.yml build

- name: Run tests
run: docker compose -f ./docker/unit_tests/docker-compose.yml up --abort-on-container-exit

Expand All @@ -33,5 +39,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Build
run: docker compose -f ./docker/unit_tests/docker-compose.yml build

- name: Run tests
run: docker compose -f ./docker/integration_tests/docker-compose.yml up --abort-on-container-exit
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def test_creating_embeddings_from_text():
embedder = Embedder()
embedding = embedder.embed(text_to_embed)

assert pytest.approx(embedding, 1e-3) == np.load("test/data_manager_test/processor_test/test_embedding.npy")
assert pytest.approx(embedding, 1e-3) == np.load("test/unit_tests/data_manager_test/processor_test/test_embedding.npy")
2 changes: 1 addition & 1 deletion test/unit_tests/data_manager_test/type_recon_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_is_directory_or_file_dir():


def test_is_directory_or_file_file():
assert FileTypeRecon.is_directory_or_file("./dockerfile") is False
assert FileTypeRecon.is_directory_or_file("./README.md") is False


def test_recognize_type_valid():
Expand Down

0 comments on commit 98a8745

Please sign in to comment.