infra: run tests by default when making a release

This commit is contained in:
Lance Edgar 2024-08-26 14:37:35 -05:00
parent 0b7276d46d
commit 4e6bdb645f

View file

@ -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')