Run the gymnasium agent tests in CI #170

Merged
aluminum-ice merged 1 commit from ci-gymnasium into main 2026-11-03 07:26:04 +00:00
Owner

What this PR does

Installs gymnasium in the Test workflow, so the agent tests that need it run in CI instead of being skipped.

test_agent_env, test_agent_policies and test_agent_train_reward importorskip gymnasium, and the Test workflow didn't install it, so CI has never run them. That includes the new coverage test in #169.

  • .forgejo/workflows/test.yml: the install step adds "gymnasium==1.4.0", the version the image pins (builder/config.yml, pip.local.constraints). stable-baselines3 and torch stay out, as before.
  • CLAUDE.md: the make test dependencies now include gymnasium.
  • docs/developer/testing.md: separates gymnasium (light) from the heavy ML stack, lists pillow and cryptography, and replaces the out-of-date "This is not the CI gate" section, which said CI never ran pytest, with what the Lint and Test workflows actually run.

Checklist

  • Lint passes — make lint (ansible --syntax-check, yamllint, shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.
  • Tests pass — with gymnasium 1.4.0 installed locally, make test passes 1687 (up from 1674, the two off-device-only failures deselected). In the three gymnasium files, 40 pass and 11 skip because they need stable-baselines3. The Test workflow on this PR is the real check.
  • Nothing real: no secrets, no personal information, no real data.
  • Consent gates intact. CI only.
  • Docs updated in the same PR.
  • Commit messages are short and imperative.

Release impact

  • App-layer-safe — the Test workflow and docs only; nothing shipped changes. The Release workflow isn't touched.
  • Reflash-class

Notes for review

  • Merging this before #169 lets #169's Test run include its new test, once #169 is rebased or its checks re-run.
  • If gymnasium's version in pip.local.constraints changes, bump it here too.

🤖 Generated with Claude Code

## What this PR does Installs `gymnasium` in the Test workflow, so the agent tests that need it run in CI instead of being skipped. `test_agent_env`, `test_agent_policies` and `test_agent_train_reward` `importorskip` gymnasium, and the Test workflow didn't install it, so CI has never run them. That includes the new coverage test in #169. - **`.forgejo/workflows/test.yml`**: the install step adds `"gymnasium==1.4.0"`, the version the image pins (`builder/config.yml`, `pip.local.constraints`). stable-baselines3 and torch stay out, as before. - **`CLAUDE.md`**: the `make test` dependencies now include gymnasium. - **`docs/developer/testing.md`**: separates gymnasium (light) from the heavy ML stack, lists pillow and cryptography, and replaces the out-of-date "This is not the CI gate" section, which said CI never ran `pytest`, with what the Lint and Test workflows actually run. ## Checklist - [x] **Lint passes** — `make lint` (ansible `--syntax-check`, `yamllint`, `shellcheck --severity=error`, and the real-data check). The **Lint** workflow runs this on the PR. - [x] **Tests pass** — with gymnasium 1.4.0 installed locally, `make test` passes 1687 (up from 1674, the two off-device-only failures deselected). In the three gymnasium files, 40 pass and 11 skip because they need stable-baselines3. The **Test** workflow on this PR is the real check. - [x] **Nothing real: no secrets, no personal information, no real data.** - [x] **Consent gates intact.** CI only. - [x] **Docs updated in the same PR.** - [x] Commit messages are short and imperative. ## Release impact - [x] **App-layer-safe** — the Test workflow and docs only; nothing shipped changes. The Release workflow isn't touched. - [ ] **Reflash-class** ## Notes for review - Merging this before #169 lets #169's Test run include its new test, once #169 is rebased or its checks re-run. - If gymnasium's version in `pip.local.constraints` changes, bump it here too. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Run the gymnasium agent tests in CI
All checks were successful
Lint / lint (push) Successful in 33s
Test / test (push) Successful in 37s
Lint / lint (pull_request) Successful in 34s
Test / test (pull_request) Successful in 33s
3b1010cc21
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aluminum-ice deleted branch ci-gymnasium 2026-11-03 07:26:04 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aluminum-ice/kestrel!170
No description provided.