Skip to content

Commit

Permalink
improving data preprocessing script
Browse files Browse the repository at this point in the history
  • Loading branch information
gushob21 committed Jan 24, 2025
1 parent a469db9 commit de206c7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
pip install -r requirements.txt
- name: Run unit tests
run: |
bash run_python_tests.sh
bash run_python_unittests.sh
2 changes: 2 additions & 0 deletions run_python_coverage_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
coverage run -m unittest discover -s use-cases/model-fine-tuning-pipeline/data-processing/ray/tests
2 changes: 1 addition & 1 deletion run_python_tests.sh → run_python_unittests.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
python -m unittest discover -s use-cases/model-fine-tuning-pipeline/data-processing/ray
python -m unittest discover -s use-cases/model-fine-tuning-pipeline/data-processing/ray/tests
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pandas as pd
from unittest.mock import patch, Mock
from src.datapreprocessing.ray_utils import RayUtils

import src.datapreporcessing

class TestRayUtils(unittest.TestCase):
@patch("ray.get")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import csv
from src.datapreprocessing.dataloader import DataLoader


class TestDataLoader(unittest.TestCase):
@patch("src.datapreprocessing.dataloader.pd.read_csv")
def test_load_raw_data(self, read_csv_mock):
Expand Down

0 comments on commit de206c7

Please sign in to comment.