Skip to content

Run unit tests on pull requests#173

Open
Robby955 wants to merge 1 commit into
stanford-centaur:mainfrom
Robby955:codex/run-tests-on-pull-requests
Open

Run unit tests on pull requests#173
Robby955 wants to merge 1 commit into
stanford-centaur:mainfrom
Robby955:codex/run-tests-on-pull-requests

Conversation

@Robby955

@Robby955 Robby955 commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • run the existing Unit Tests workflow for pull_request events as well as push events
  • reduce the test job token scope to contents: read; Pages/OIDC write permissions are only needed by the documentation deployment workflow

Why

Contributor PRs currently show no test check rollup unless maintainers run validation separately. Enabling the existing workflow on pull requests makes small maintenance PRs easier to evaluate with the same pytest path already used on pushes.

The test job does not publish GitHub Pages or request an OIDC token, so it can use least-privilege read access.

Validation

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/test.yaml"); puts "workflow yaml parsed"'
  • git diff --check
  • .venv/bin/pytest -q (29 passed, with the pre-existing Python 3.13 asyncio deprecation warning addressed separately in PR Avoid asyncio import deprecation warning #172)

@Robby955 Robby955 force-pushed the codex/run-tests-on-pull-requests branch from 9cd994f to fe48153 Compare May 25, 2026 04:29
@Robby955 Robby955 marked this pull request as ready for review June 8, 2026 00:36
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