Skip to content

Commit

Permalink
update tests and GitHub workflow to ignore tests that rely on a runni…
Browse files Browse the repository at this point in the history
…ng Docker instance if run in CI environment
  • Loading branch information
jueri committed Sep 20, 2024
1 parent 7623b1b commit 2cc97f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/test/services/test_ranking_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
running_in_ci = os.getenv("CI") == "true"


@pytest.mark.skipif(
running_in_ci, reason="Test requires Docker and will not run in CI environment"
)
def test_request_results_from_conatiner(mock_request_base_system):
container_name = "ranker_base"
result = request_results_from_conatiner(
Expand Down

0 comments on commit 2cc97f9

Please sign in to comment.