- Python 100%
badgerp_ci #
The latest public GitHub Actions run, GitLab.com pipeline, or AppVeyor build, not the latest successful run. Uses the shared bounded JSON transport without dependencies, authentication, custom hosts, or service writes.
ci(repository="rust-lang/rust", workflow="ci.yml", branch="main")
ci(repository="inkscape/inkscape", provider="gitlab", branch="master")
run(repository, provider="github", workflow="", branch="")
GitHub workflow may be a filename or numeric ID as a string. Omitting it selects
the latest run across all workflows. Omitting branch selects across all branches,
not necessarily the default branch. GitLab accepts nested group/project paths,
uses branch as its ref filter, and rejects a nonempty workflow argument. It
requests pipelines ordered by descending ID, one result, to avoid treating an
empty pipeline list as a permissions failure.
- Success is green; failure/timeouts are red.
- Running, queued, pending, waiting, manual, and scheduled states are amber.
- Canceled, skipped, neutral, stale, and unfamiliar states remain gray.
- Empty lists are
no runs; missing status or completed-run conclusion isunknown, never passing. Unrecognized status text is preserved. - Network, rate-limit, and malformed-schema errors propagate.
Only these three hosted CI services are supported. There are no private-token, coverage, historical trend, self-hosted, or Tangled pipeline claims. CI rendering creates static badges; no live polling, persistent cache, or automatic retry is performed. Public GitHub requests share its unauthenticated per-IP rate budget.
API references #
Tests inject deterministic API payloads and verify active/completed/unknown states, escaping, filters, empty results, and errors. They do not establish live service availability.
AppVeyor #
Use provider="appveyor" and repository="account/project-slug", which is the
AppVeyor project identity, not necessarily the upstream GitHub repository path.
The public latest-build endpoint is used; branch optionally selects its latest
branch build. workflow is rejected. Queued/running remain amber, failed red,
cancelled neutral, success green. An explicit null build or missing build status
is unknown; a missing build field or malformed payload raises an error. There
are no project settings, environment variables, or logs fetched, and no tokens.
- https://www.appveyor.com/docs/api/projects-builds/
- https://www.appveyor.com/docs/api/samples/download-artifacts-sh/
The current curl project response was verified publicly without authentication; the old official example project returned404 and was not treated as a pass.
Developing independently #
This is a plugin for Badger,
not a standalone Python application. Badger supplies the badger runtime module.
For tests outside the CLI, put the plugins directory from a compatible Badger
checkout on PYTHONPATH:
PYTHONPATH=/path/to/Badger/plugins uv run --no-project --with pytest pytest tests -m 'not network'
To try working-tree changes in a separate Badger project, use register() with
a local path pointing at this checkout. See the
distribution guide.
Releasing #
Keep the existing badgerp_* distribution name so Badger can discover it.
After updating the version (and uv.lock if present), build and check the
artifacts from a clean checkout:
uv build --clear
uvx twine check dist/*
Publish only after coordinating with the Badger maintainers so the same version
is not released from both checkouts. Supply UV_PUBLISH_TOKEN securely in the
environment, then run uv publish --check-url https://pypi.org/simple/ dist/*.
This plugin is licensed under the Blue Oak Model License 1.0.0.