From 9b76a93c56cfec260edf42375aaabb8ac42c8d3d Mon Sep 17 00:00:00 2001 From: Charles Scott Date: Thu, 17 Aug 2023 12:08:34 +0100 Subject: [PATCH] Make run_tests.py logic clearer. --- .github/workflows/run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.py b/.github/workflows/run_tests.py index 0296bd75a..ef87a2887 100644 --- a/.github/workflows/run_tests.py +++ b/.github/workflows/run_tests.py @@ -10,7 +10,7 @@ "--cov=vayesta", ] - if not (len(sys.argv) == 1 or sys.argv[1] != "--with-veryslow"): + if len(sys.argv) > 1 and sys.argv[1] == "--with-veryslow": args.append("-m veryslow or not veryslow") raise SystemExit(pytest.main(args))