tessl install tessl/pypi-invoke@2.2.0Pythonic task execution library for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks
Agent Success
Agent success rate when using this tile
96%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.25x
Baseline
Agent success rate without this tile
77%
Build a deployment task with a test suite that verifies task behavior without executing actual shell commands.
Create a deployment task that executes these commands in sequence:
git status - Check repository statuspytest - Run test suitepython setup.py build - Build the application./deploy.sh - Deploy to productionThe task should return a dictionary with a "status" key indicating success or failure.
Your test suite must verify the task behavior using mocked command execution:
{"status": "deployed"} @test{"status": "tests_failed"} @test@generates
from invoke import task
@task
def deploy(c, environment="production"):
"""
Deploy the application to the specified environment.
Args:
c: Context object for running commands
environment: Target deployment environment
Returns:
dict: Deployment report with status information
"""
passProvides task execution and testing support.