Skip to content

Commit 9ff0db7

Browse files
authored
test(release): disable individual example script checks for now (#1843)
* need to consider whether necessary to test all individual example scripts too * logic to pick them randomly was broken, didn't respect gwf model dependencies
1 parent def73f5 commit 9ff0db7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

distribution/check_dist.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,14 @@ def test_examples(dist_dir_path, full):
189189
print(f"{len(example_paths)} example models found:")
190190
pprint(example_paths)
191191

192-
# pick some examples at random to test run individually
193-
n = 3
194-
shuffle(example_paths)
195-
script_paths = [next(iter(p.rglob(f"*run{_scext}"))) for p in example_paths[:n]]
196-
print(f"Testing {n} randomly selected example model scripts:")
197-
pprint(script_paths)
198-
for script_path in script_paths:
199-
out, err, ret = run_cmd(str(script_path), cwd=script_path.parent)
200-
assert not ret, out + err
192+
# todo: check individual scripts? toggle via release workflow input?
193+
# model_paths = get_model_paths(examples_path)
194+
# script_paths = [mp / f"run{_scext}" for mp in model_paths]
195+
# for script_path in script_paths:
196+
# print(f"Testing example script: {script_path}")
197+
# assert script_path.is_file()
198+
# out, err, ret = run_cmd(str(script_path), cwd=script_path.parent)
199+
# assert not ret, out + err
201200

202201
# check comprehensive examples script and give it a test run
203202
script_path = examples_path / f"runall{_scext}"

0 commit comments

Comments
 (0)