diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 61dace8..cea086e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,12 +16,12 @@ jobs: options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.8' # Choose the Python version as per your requirement + python-version: 3.9 - name: Install Python dependencies run: | diff --git a/python/run_unit_tests.py b/python/run_unit_tests.py index 333fdb3..3c18dac 100644 --- a/python/run_unit_tests.py +++ b/python/run_unit_tests.py @@ -43,4 +43,5 @@ def run_unit_tests(): script_dir = os.path.dirname(os.path.abspath(__file__)) unit_test_dir = os.path.join(script_dir, "tests") os.chdir(unit_test_dir) - run_unit_tests() + result = run_unit_tests() + exit(len(result.failures)) diff --git a/python/tests/integ_test_cli_manager.py b/python/tests/integ_test_cli_manager.py index b2f5e10..2a942c4 100644 --- a/python/tests/integ_test_cli_manager.py +++ b/python/tests/integ_test_cli_manager.py @@ -83,11 +83,11 @@ def test_cat_user_set_variation(self): # Test DB has a test data assignment for: # variation: test # runs: 500-2000 - # it has data: [[4,6,8],[10,12,13]] + # it has data: 1.0|2.0|3.0|4.0|5.0|6.0 self.cli.context.current_variation = "test" self.cli.context.current_run = 600 self.cli.process_command_line("cat /test/test_vars/test_table") - self.assertIn("13", self.output.getvalue()) + self.assertIn("6.1", self.output.getvalue()) def test_cat_not_abs_path(self):