Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions poe-tasks/wrkflw-poe-tasks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[tool.poe.tasks.wrkflw]
help = "Run wrkflw commands with automatic brew installation if needed"
shell = """
if ! command -v wrkflw &> /dev/null; then
echo "Installing wrkflw via brew..."
brew install wrkflw
fi
wrkflw "$@"
"""

[tool.poe.tasks.ci-test]
help = "Run wrkflw (opens TUI if no args provided)"
shell = """
if ! command -v wrkflw &> /dev/null; then
echo "Installing wrkflw via brew..."
brew install wrkflw
fi
wrkflw
"""

[tool.poe.tasks.ci-test-workflow]
help = "Run a GitHub Actions workflow locally (e.g., poe ci-test-workflow python_lint.yml)"
shell = """
if ! command -v wrkflw &> /dev/null; then
echo "Installing wrkflw via brew..."
brew install wrkflw
fi
wrkflw run .github/workflows/${workflow}
"""
args = [
{ name = "workflow", positional = true, help = "Workflow filename (e.g., python_lint.yml)" }
]

[tool.poe.tasks.ci-validate]
help = "Validate a GitHub Actions workflow file (e.g., poe ci-validate python_lint.yml)"
shell = """
if ! command -v wrkflw &> /dev/null; then
echo "Installing wrkflw via brew..."
brew install wrkflw
fi
wrkflw validate .github/workflows/${workflow}
"""
args = [
{ name = "workflow", positional = true, help = "Workflow filename (e.g., python_lint.yml)" }
]
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ pyairbyte = "airbyte.cli:cli"
pyab = "airbyte.cli:cli"
airbyte-mcp = "airbyte.mcp.server:main"

[tool.poe]
include = ["poe-tasks/wrkflw-poe-tasks.toml"]

[tool.poe.tasks]
test = { shell = "pytest" }
test-fast = { shell = "pytest --durations=5 --exitfirst -m 'not slow'" }
Expand Down
Loading