@@ -58,8 +58,11 @@ def __init__(self):
5858 "--clean" , is_flag = True , help = "Remove all containers and images before starting"
5959)
6060@click .option ("--skip-pre" , is_flag = True , default = False , help = "Skip pre-build steps" )
61+ @click .option (
62+ "--skip-tests" , is_flag = True , default = False , help = "Skip running tests before build"
63+ )
6164@pass_config
62- def cli (config , verbose , all , core , service , clean , skip_pre ):
65+ def cli (config , verbose , all , core , service , clean , skip_pre , skip_tests ):
6366 """
6467 Build the wheels and Docker containers needed for this application
6568 You can control which parts of the pipeline to run and which services to build or
@@ -85,6 +88,10 @@ def cli(config, verbose, all, core, service, clean, skip_pre):
8588 config .skip_pre = True
8689 else :
8790 config .skip_pre = False
91+ if skip_tests :
92+ config .skip_tests = True
93+ else :
94+ config .skip_tests = False
8895 if clean :
8996 clean_all ()
9097
@@ -915,6 +922,9 @@ def sync(ctx, config):
915922@pass_config
916923def test (config ):
917924 """Run format checks and tests"""
925+ if getattr (config , "skip_tests" , False ):
926+ console .print ("Skipping tests and format checks" , style = "bold yellow" )
927+ return
918928 checks = [
919929 ["black" , "--check" , "--config" , "pyproject.toml" , "bases" ],
920930 ["black" , "--check" , "--config" , "pyproject.toml" , "components" ],
0 commit comments