Add management tasks
This commit is contained in:
parent
d3c3bd050c
commit
08c710b178
1 changed files with 12 additions and 0 deletions
12
tasks.py
12
tasks.py
|
@ -15,3 +15,15 @@ def test(ctx):
|
||||||
def test_cov(ctx):
|
def test_cov(ctx):
|
||||||
with ctx.cd(BASE_DIR):
|
with ctx.cd(BASE_DIR):
|
||||||
ctx.run(f"pytest --cov=.", pty=True, echo=True)
|
ctx.run(f"pytest --cov=.", pty=True, echo=True)
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def full_test(ctx):
|
||||||
|
with ctx.cd(BASE_DIR):
|
||||||
|
ctx.run(f"tox", pty=True, echo=True)
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def publish(ctx):
|
||||||
|
with ctx.cd(BASE_DIR):
|
||||||
|
ctx.run(f"poetry publish --build", pty=True, echo=True)
|
||||||
|
|
Loading…
Reference in a new issue