From 33eff4d0fc6a0a0a1041d7bc52c4f633603d62a1 Mon Sep 17 00:00:00 2001 From: Matthew Tancik Date: Sat, 16 Jul 2022 16:23:36 -0700 Subject: [PATCH] run_actions propagate docs error (#163) * run_actions propagate docs error --- scripts/debugging/run_actions.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/debugging/run_actions.py b/scripts/debugging/run_actions.py index 4633c7a36..800d558b9 100644 --- a/scripts/debugging/run_actions.py +++ b/scripts/debugging/run_actions.py @@ -7,11 +7,15 @@ import yaml LOCAL_TESTS = ["Run license checks", "Run Black", "Python Pylint", "Test with pytest"] -def run_command(command): - """Run a command kill actions if it fails""" +def run_command(command) -> None: + """Run a command kill actions if it fails + + Args: + command (str): command to run + """ ret_code = subprocess.call(command, shell=True) if ret_code != 0: - print(f"\033[31mError: `{curr_command}` failed. Exiting...\033[0m") + print(f"\033[31mError: `{command}` failed. Exiting...\033[0m") sys.exit(1) @@ -37,7 +41,7 @@ if __name__ == "__main__": # Add checks for building documentation print_green("Building Documentation") - run_command("cd docs/; make html; cd ../") + run_command("cd docs/; make html SPHINXOPTS='-W;'") print("\n") print_green("=" * 100)