From 08c710b178dd586ac1ec852633bdc46b00ec1c57 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 20 Nov 2021 13:03:49 +0100 Subject: [PATCH] Add management tasks --- tasks.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tasks.py b/tasks.py index 7257f48..42a430d 100644 --- a/tasks.py +++ b/tasks.py @@ -15,3 +15,15 @@ def test(ctx): def test_cov(ctx): with ctx.cd(BASE_DIR): 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)