Changeset - 4e6bdb645f5a
[Not reviewed]
0 1 0
Lance Edgar (lance) - 2 months ago 2024-08-26 14:37:35
lance@edbob.org
infra: run tests by default when making a release
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
tasks.py
Show inline comments
 
@@ -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')
0 comments (0 inline, 0 general)