-
Notifications
You must be signed in to change notification settings - Fork 8
Introduce xbot-shell interactive CLI with dynamic service management #27
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c667943
Added examples, deadlock fix
ClemensElflein b78fbba
fix: busy-wait, callback race, dep floors, markdown fences, vcs.xml
ClemensElflein 4698f8f
refactor: rename xbot_service_interface → xbot_service_interface_py
ClemensElflein bdbec21
ci: add Python test/build/publish workflow
ClemensElflein cd9bd6c
docs: rewrite README with full API and IPython shell documentation
ClemensElflein f0500bb
fix: capture DEBUG log level in missing-register test
ClemensElflein 7524b65
docs: fix arch diagram fence tag, clarify threading and schema valida…
ClemensElflein 459f32c
fix: remove _cb from on_connected callbacks when already connected in…
ClemensElflein 675652b
ci,fix: pin action SHAs, add least-privilege permissions, fix package…
ClemensElflein cfdcba2
Fix minor stuff in example
ClemensElflein ca26159
ci(python): publish to GitHub Releases instead of PyPI
ClemensElflein 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,76 @@ | ||
| name: python | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: xbot_service_interface_py | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12"] | ||
| steps: | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install | ||
| run: pip install -e ".[dev]" | ||
| - name: Test | ||
| run: pytest | ||
|
|
||
| build: | ||
| runs-on: ubuntu-latest | ||
| needs: test | ||
| defaults: | ||
| run: | ||
| working-directory: xbot_service_interface_py | ||
| steps: | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Build | ||
| run: | | ||
| pip install build | ||
| python -m build | ||
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | ||
| with: | ||
| name: dist | ||
| path: xbot_service_interface_py/dist/ | ||
|
|
||
| publish: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | ||
| with: | ||
| name: dist | ||
| path: dist/ | ||
| - name: Create GitHub Release | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| GH_REPO: ${{ github.repository }} | ||
| run: | | ||
| TAG="${{ github.ref_name }}" | ||
| REPO="${{ github.repository }}" | ||
| printf '## Install\n\n```bash\npip install git+https://github.com/%s.git@%s#subdirectory=xbot_service_interface_py\n# with IPython shell extras:\npip install "git+https://github.com/%s.git@%s#subdirectory=xbot_service_interface_py#egg=xbot-service-interface-py[shell]"\n```\n' \ | ||
| "$REPO" "$TAG" "$REPO" "$TAG" > /tmp/release_notes.md | ||
| gh release create "$TAG" dist/* \ | ||
| --title "xbot-service-interface-py $TAG" \ | ||
| --notes-file /tmp/release_notes.md | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.
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.