ofx-processor/tasks.py

30 lines
530 B
Python
Raw Normal View History

2021-11-18 19:04:43 +01:00
from pathlib import Path
from invoke import task
BASE_DIR = Path(__file__).parent.resolve(strict=True)
@task
def test(ctx):
with ctx.cd(BASE_DIR):
ctx.run(f"pytest", pty=True, echo=True)
@task
def test_cov(ctx):
2021-11-18 19:04:43 +01:00
with ctx.cd(BASE_DIR):
ctx.run(f"pytest --cov=.", pty=True, echo=True)
2021-11-20 13:03:49 +01:00
@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)