Skip to content

Run the plugin tests in CI - #6

Merged
bensynapse merged 1 commit into
mainfrom
ci/workflows-2026-11-17
Nov 17, 2026
Merged

bensynapse merged 1 commit into
mainfrom
ci/workflows-2026-11-17

Conversation

@bensynapse

@bensynapse bensynapse commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

This repository had no workflow on push or pull request, only CodeQL's default setup. Dependabot updates were checked by hand before merging. This adds .github/workflows/ci.yml, which runs the checks in tests/README.md on every push to main and on each pull request.

What it runs

One job on ubuntu-latest with Python 3.12, the version tests/README.md asks for:

  1. Fetch Agent Zero and the plugin index into .coding-agent/upstream and .coding-agent/a0-plugins. Each is a shallow fetch at the commit of the local source lock: agent-zero ba9b67df, a0-plugins c4d90b79. The source lock itself is gitignored, so the workflow pins the two commits in env.
  2. pip install -r tests/requirements.txt.
  3. python -m playwright install chromium.
  4. python -m pytest -v -rP -p no:cacheprovider --basetemp=.coding-agent/tmp/pytest tests, which runs the layout tests, the upstream index validator and the browser tests at desktop and phone widths.
  • Actions are pinned by commit SHA with the version in a comment. checkout v7.0.1 and setup-python v7.1.0 match the other repositories.
  • permissions: contents: read.
  • A concurrency group: a new push to a pull request cancels the run it replaces. Pushes to main get a group of their own per run.
  • setup-python caches pip, keyed on tests/requirements.txt.

The README gains a CI badge in its badge row and one line about CI. tests/README.md says that CI fetches the same two commits. The brand header is otherwise unchanged.

Checked locally

Fresh shallow fetches of both repositories at those commits took 3 s and 1 s. Then the same install and pytest command with Python 3.12 gave 12 passed in 1.80 s.

Measured on this PR

The job passed in 21 s on the first run and 24 s on a re-run. Fetching both repositories took 2 to 3 s, the Chromium download 8 s and pytest 1 to 2 s. The re-run restored the 61 MB pip cache in about 2 s. The install still took 4 s, so the cache saves nothing at this size. The browser download is left uncached. It is 8 s, and caching it would cost a restore of similar length.

ci-speedup

The repository has no run history, so only the static scan applies. Before this change it found nothing, because there was no workflow. On the new workflow:

  • No paths filter, rated high risk by the tool. Not added. The tests read the docs and the submission files too, so a filter would skip changes that can fail them.
  • No draft gating. Not added. The job is short.
  • Playwright installed while nothing runs playwright test. This is a false positive. The browser test drives Playwright from pytest through playwright.sync_api.

The workflow fetches Agent Zero and the plugin index at the commits of the local source lock.
@bensynapse
bensynapse merged commit 5491a86 into main Nov 17, 2026
5 checks passed
@bensynapse
bensynapse deleted the ci/workflows-2026-11-17 branch November 17, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant