Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 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
14 changes: 14 additions & 0 deletions poe-tasks/wrkflw-poe-tasks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[tool.poe.tasks]
wrkflw = { shell = """
docker run --rm -v $(pwd):/workspace -w /workspace python:3.12 sh -c "
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y &&
. ~/.cargo/env &&
cargo install wrkflw &&
pip install poetry &&
wrkflw ${WRKFLW_ARGS:-}
"
""", help = "Run wrkflw commands in Docker container with Rust/Poetry setup (use WRKFLW_ARGS env var for arguments)" }

ci-test = { shell = "wrkflw", help = "Run wrkflw (opens TUI if no args provided)" }

ci-test-workflow = { shell = "WRKFLW_ARGS=\"run .github/workflows/$WORKFLOW --runtime emulation\" poe wrkflw", help = "Run a GitHub Actions workflow locally (e.g., WORKFLOW=python_lint.yml poe ci-test-workflow)" }
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