From 4e6bdb645f5aeada4e99d00629d698091f3a972d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 26 Aug 2024 14:37:35 -0500 Subject: [PATCH] infra: run tests by default when making a release --- tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 67f2dd6b..049a9551 100644 --- a/tasks.py +++ b/tasks.py @@ -31,12 +31,12 @@ from invoke import task @task -def release(c, tests=False): +def release(c, skip_tests=False): """ Release a new version of `rattail`. """ - if tests: - c.run('tox') + if not skip_tests: + c.run('pytest') if os.path.exists('dist'): shutil.rmtree('dist')