Fix: Resolve hardcoded workspace path in synthetic test runner for CI compatibility
All checks were successful
CI Test Suite / run-tests (push) Successful in 1m12s
Deploy Documentation / build-and-deploy (push) Successful in 53s

This commit is contained in:
ignis 2026-06-02 07:34:02 +00:00
parent 37c60f4f49
commit d1cf59dca2

View file

@ -6,8 +6,10 @@ import numpy as np
from generate_synthetic_data import generate_synthetic_grid from generate_synthetic_data import generate_synthetic_grid
def run_synthetic_regression_test(): def run_synthetic_regression_test():
workspace_dir = "/home/ignis/workspace/incomp-flame-post" # Resolve paths dynamically relative to this script's location
code_dir = os.path.join(workspace_dir, "code") code_gen_dir = os.path.dirname(os.path.abspath(__file__))
code_dir = os.path.dirname(code_gen_dir)
workspace_dir = os.path.dirname(code_dir)
test_run_dir = os.path.join(workspace_dir, "scratch", "synthetic_test_run") test_run_dir = os.path.join(workspace_dir, "scratch", "synthetic_test_run")
# 1. Create a clean testing directory in workspace # 1. Create a clean testing directory in workspace