-
Notifications
You must be signed in to change notification settings - Fork 67
feat: add poe task to run GitHub Actions workflows locally with wrkflw #753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4e097bf
feat: add poe task to run GitHub Actions workflows locally with wrkflw
devin-ai-integration[bot] 1cf5722
fix: resolve mypy and ruff lint issues in run_workflow.py
devin-ai-integration[bot] db8709a
Apply suggestion from @coderabbitai[bot]
aaronsteers 79c657a
refactor: replace Python script with direct Docker bash command for w…
devin-ai-integration[bot] 4086667
feat: update poe task to use python:3.12 Docker image with Rust/wrkfl…
devin-ai-integration[bot] b2e4fef
resolve merge conflict: confirm deletion of scripts directory
devin-ai-integration[bot] 8bbb197
refactor: move wrkflw tasks to external poe-tasks/wrkflw-poe-tasks.toml
devin-ai-integration[bot] c0ae3f9
feat: add ci-validate task for GitHub Actions workflow validation
devin-ai-integration[bot] 33b5dc4
fix: update TOML syntax to use single quotes for shell commands
devin-ai-integration[bot] 7097946
feat: replace Docker with brew installation for wrkflw integration
devin-ai-integration[bot] aad1bec
fix: remove --runtime emulation flag to use default container runtime
devin-ai-integration[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.