Opp repl github actions
Dispatch GitHub Actions CI workflows from opp_repl. Requires `github` extra, a personal access token at ~/.ssh/github_repo_token (repo + workflow scopes), and github_owner/github_repository/github_workflows parameters in the project's .opp file. dispatch_workflow and dispatch_all_workflows fire workflow_dispatch events; combine with `opp-repl-fingerprint-tests` etc. locally.From its SKILL.md
npx -y skills add tabgab/opp_repl-skill --skill opp-repl-github-actionsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.7 KB, 519 tokens by cl100k_base, as published. Nobody here has run it
GitHub Actions integration
Fire workflow_dispatch events on the project's GitHub repository
directly from opp_repl. Handy for triggering expensive CI suites
(full fingerprint run, cluster tests) without leaving the REPL.
Upstream reference: https://github.com/omnetpp/opp_repl/blob/main/doc/github_actions.md
Prerequisites
-
pip install "opp_repl[github]"(pullsrequests). -
Personal access token in
~/.ssh/github_repo_token(file permissions 600) with scopesrepoandworkflow. -
.oppfile includes GitHub fields:SimulationProject( name="inet", root_folder=".", ..., github_owner="inet-framework", github_repository="inet", github_workflows=[ "fingerprint-tests.yml", "statistical-tests.yml", "chart-tests.yml", ], )
Python API
# Dispatch a single workflow
dispatch_workflow("fingerprint-tests.yml")
# Dispatch all configured workflows for the default project
dispatch_all_workflows()
# Target a specific project and branch
dispatch_workflow("fingerprint-tests.yml",
simulation_project=inet_project,
ref="topic/my-feature")
Returns the HTTP response from GitHub. No CLI wrapper is bundled
for this function; use the REPL or an ad-hoc python -c.
Typical workflow
- Finish a local change and run smoke tests locally.
dispatch_workflow("fingerprint-tests.yml", ref="my-branch")to kick a longer CI run while you context-switch.- Inspect the results in GitHub Actions UI when ready.
Pitfalls
- The token file must not be group/world readable. GitHub will 400 / 401 with ambiguous messages otherwise.
github_workflowslists YAML file names, not display names. Check.github/workflows/in the repo.workflow_dispatchmust be declared in the workflow YAML itself (on: [workflow_dispatch]), or the API returns 422.dispatch_workflow()just TRIGGERS the run; results live on GitHub. If you need local verdicts, run the equivalentrun_*_tests()instead.
See also
opp-repl-opp-files— wheregithub_*parameters go.- Every
opp-repl-*-testsskill — what workflows typically run.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.