infra: run tests by default when making a release
This commit is contained in:
parent
0b7276d46d
commit
4e6bdb645f
1 changed files with 3 additions and 3 deletions
6
tasks.py
6
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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue