Skip to content

Make Python version correct #22

Make Python version correct

Make Python version correct #22

GitHub Actions / Test Results failed Dec 25, 2023 in 0s

2 fail, 46 pass in 1m 24s

48 tests  +26   46 ✅ +26   1m 24s ⏱️ +26s
 1 suites ± 0    0 💤 ± 0 
 1 files   ± 0    2 ❌ ± 0 

Results for commit 3e47369. ± Comparison against earlier commit b887ca1.

Annotations

Check warning on line 0 in src.tests.test_package.TestPackage

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_python_version (src.tests.test_package.TestPackage) failed

test.xml [took 0s]
Raw output
AssertionError: assert '3.10.9' == '3.10.12'
  - 3.10.12
  ?      ^^
  + 3.10.9
  ?      ^
self = <src.tests.test_package.TestPackage object at 0x7f38bead10f0>

    def test_python_version(self):
        with open(".python-version", "r") as f:
            python_version = f.read().strip()
>           assert python_version == platform.python_version()
E           AssertionError: assert '3.10.9' == '3.10.12'
E             - 3.10.12
E             ?      ^^
E             + 3.10.9
E             ?      ^

src/tests/test_package.py:19: AssertionError

Check warning on line 0 in src.tests.embedders.test_embedders.TestSentenceTransformersEmbedder

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_run (src.tests.embedders.test_embedders.TestSentenceTransformersEmbedder) failed

test.xml [took 8s]
Raw output
assert 0.005033116 == 0.005033156 ± 5.0e-09
  comparison failed
  Obtained: 0.005033115856349468
  Expected: 0.005033156 ± 5.0e-09
self = <src.tests.embedders.test_embedders.TestSentenceTransformersEmbedder object at 0x7f38c14009d0>
create_datadreamer = <function create_datadreamer.<locals>._create_datadreamer at 0x7f38be5ed090>

    def test_run(self, create_datadreamer):
        with create_datadreamer():
            # Simple test
            model = SentenceTransformersEmbedder("all-mpnet-base-v2")
            assert model.model_max_length == 384
            assert model.dims == 768
            results = model.run(texts=["A test sentence.", "Another test sentence."])
            assert isinstance(results, list)
            assert len(results[0]) == 768
            assert results[0][0] == pytest.approx(0.042875204)
            assert results[1][0] == pytest.approx(0.027576972)
    
            # Simple test with instruction
            model = SentenceTransformersEmbedder("all-mpnet-base-v2")
            results = model.run(
                texts=["A test sentence.", "Another test sentence."],
                instruction="Represent this sentence: ",
            )
            assert isinstance(results, list)
            assert len(results[0]) == 768
>           assert results[0][0] == pytest.approx(0.005033156)
E           assert 0.005033116 == 0.005033156 ± 5.0e-09
E             comparison failed
E             Obtained: 0.005033115856349468
E             Expected: 0.005033156 ± 5.0e-09

src/tests/embedders/test_embedders.py:50: AssertionError

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

48 tests found

There are 48 tests, see "Raw output" for the full list of tests.
Raw output
src.tests.datasets.test_datasets.TestErrors ‑ test_invalid_args_dataset[OutputDataset-False]
src.tests.datasets.test_datasets.TestErrors ‑ test_invalid_args_dataset[OutputDatasetColumn-False]
src.tests.datasets.test_datasets.TestErrors ‑ test_invalid_args_dataset[OutputIterableDataset-True]
src.tests.datasets.test_datasets.TestErrors ‑ test_invalid_args_dataset[OutputIterableDatasetColumn-True]
src.tests.datasets.test_datasets.TestErrors ‑ test_invalid_args_step[OutputDataset-False]
src.tests.datasets.test_datasets.TestErrors ‑ test_invalid_args_step[OutputDatasetColumn-False]
src.tests.datasets.test_datasets.TestErrors ‑ test_invalid_args_step[OutputIterableDataset-True]
src.tests.datasets.test_datasets.TestErrors ‑ test_invalid_args_step[OutputIterableDatasetColumn-True]
src.tests.datasets.test_datasets.TestErrors ‑ test_too_few_columns[OutputDatasetColumn-False]
src.tests.datasets.test_datasets.TestErrors ‑ test_too_few_columns[OutputIterableDatasetColumn-True]
src.tests.datasets.test_datasets.TestErrors ‑ test_too_many_columns[OutputDatasetColumn-False]
src.tests.datasets.test_datasets.TestErrors ‑ test_too_many_columns[OutputIterableDatasetColumn-True]
src.tests.datasets.test_datasets.TestFunctionality ‑ test_dataset
src.tests.datasets.test_datasets.TestFunctionality ‑ test_dataset_indexing
src.tests.datasets.test_datasets.TestFunctionality ‑ test_dataset_pickled
src.tests.datasets.test_datasets.TestFunctionality ‑ test_iterable_dataset
src.tests.datasets.test_datasets.TestFunctionality ‑ test_iterable_dataset_indexing
src.tests.datasets.test_datasets.TestFunctionality ‑ test_iterable_dataset_pickled
src.tests.datasets.test_utils.TestErrors ‑ test_dataset_zip_no_args
src.tests.datasets.test_utils.TestErrors ‑ test_iterable_dataset_zip_no_args
src.tests.datasets.test_utils.TestFunctionality ‑ test_dataset_zip
src.tests.datasets.test_utils.TestFunctionality ‑ test_get_column_names
src.tests.datasets.test_utils.TestFunctionality ‑ test_iterable_dataset_zip
src.tests.embedders.test_embedders.TestSentenceTransformersEmbedder ‑ test_init
src.tests.embedders.test_embedders.TestSentenceTransformersEmbedder ‑ test_metadata
src.tests.embedders.test_embedders.TestSentenceTransformersEmbedder ‑ test_run
src.tests.test_cli.TestCli ‑ test_help
src.tests.test_datadreamer.TestErrors ‑ test_nested
src.tests.test_datadreamer.TestErrors ‑ test_path_is_to_file
src.tests.test_datadreamer.TestErrors ‑ test_steps_with_same_name
src.tests.test_datadreamer.TestFunctionality ‑ test_creates_folder
src.tests.test_datadreamer.TestFunctionality ‑ test_ctx_clears
src.tests.test_datadreamer.TestFunctionality ‑ test_data_card_propagates
src.tests.test_datadreamer.TestFunctionality ‑ test_in_memory
src.tests.test_datadreamer.TestFunctionality ‑ test_logging
src.tests.test_datadreamer.TestFunctionality ‑ test_num_shards
src.tests.test_datadreamer.TestFunctionality ‑ test_saves_pickled_dataset
src.tests.test_datadreamer.TestFunctionality ‑ test_step_creates_folder_and_saves_dataset
src.tests.test_datadreamer.TestFunctionality ‑ test_step_creates_run_output_folder
src.tests.test_datadreamer.TestFunctionality ‑ test_step_does_not_save_iterable_dataset
src.tests.test_datadreamer.TestFunctionality ‑ test_step_does_save_iterable_dataset
src.tests.test_datadreamer.TestFunctionality ‑ test_step_force
src.tests.test_datadreamer.TestFunctionality ‑ test_step_logging
src.tests.test_datadreamer.TestFunctionality ‑ test_steps_added_to_ctx
src.tests.test_package.TestPackage ‑ test_mypy
src.tests.test_package.TestPackage ‑ test_python_version
src.tests.test_package.TestPackage ‑ test_running_in_pytest
src.tests.test_package.TestPackage ‑ test_version