@@ -50,6 +50,8 @@ def test_plot_tarp(plot_config, mock_model, mock_data, mock_run_id):
5050 plot (** get_item ("plots" , "TARP" , raise_exception = False ))
5151 assert os .path .exists (f"{ plot .out_dir } /{ mock_run_id } _{ plot .plot_name } " )
5252
53+ IN_GITHUB_ACTIONS = os .getenv ("GITHUB_ACTIONS" ) == "true"
54+ @pytest .mark .skipif (not IN_GITHUB_ACTIONS , reason = "L2CST Test is very slow, should only be run on remote." )
5355def test_lc2st (plot_config , mock_model , mock_data , mock_2d_data , result_output , mock_run_id ):
5456 Config (plot_config )
5557 plot = LC2ST (mock_model , mock_data , mock_run_id , save = True , show = False )
@@ -61,7 +63,7 @@ def test_lc2st(plot_config, mock_model, mock_data, mock_2d_data, result_output,
6163 out_dir = f"{ result_output .strip ('/' )} /mock_2d/" )
6264 assert type (plot .data .simulator ).__name__ == "Mock2DSimulator"
6365 plot (** get_item ("plots" , "LC2ST" , raise_exception = False ))
64- assert os .path .exists (f"{ plot .out_dir } /{ plot .plot_name } " )
66+ assert os .path .exists (f"{ plot .out_dir } /{ mock_run_id } _ { plot .plot_name } " )
6567
6668def test_ppc (plot_config , mock_model , mock_data , mock_2d_data , result_output , mock_run_id ):
6769 Config (plot_config )
@@ -115,7 +117,7 @@ def test_parity(plot_config, mock_model, mock_data, mock_run_id):
115117 assert os .path .exists (f"{ plot .out_dir } /{ mock_run_id } _{ plot .plot_name } " )
116118
117119
118- @pytest .mark .parametrize ("plot_type" , [CDFRanks , Ranks , CoverageFraction , TARP , LC2ST , PPC , PriorPC , Parity ])
120+ @pytest .mark .parametrize ("plot_type" , [CDFRanks , Ranks , CoverageFraction , TARP , PPC , PriorPC , Parity ])
119121def test_rerun_plot (plot_type , plot_config , mock_model , mock_data , mock_run_id ):
120122
121123 Config (plot_config )
0 commit comments