Skip to content

Add the State files check (translate doctor --require-state) - #109

Merged
mmcky merged 1 commit into
mainfrom
state-files-check
Nov 16, 2026
Merged

mmcky merged 1 commit into
mainfrom
state-files-check

Conversation

@mmcky

@mmcky mmcky commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

This adds one file, .github/workflows/state-files.yml, a check called State files. On every pull request and on every push to main, its state-files job checks out QuantEcon/action-translation at the v0.33.0 release, builds the translate CLI and runs translate doctor --require-state against this edition. The job fails when a lecture has no state file in .translate/state/ and isn't declared in state-exceptions, or when any other doctor check fails.

The job is planned to become a required status check on main, so that a PR can't merge while a lecture is missing its state file. That is a separate step, made in branch protection after this merges. See QuantEcon/action-translation#370.

It pins action-translation v0.33.0, the first release with --require-state; the pin moves when the edition upgrades. The file is the example in action-translation's CLI reference (Running it in CI), unchanged. Run locally with the CLI at v0.33.0, translate doctor --require-state passes on this branch.

@mmcky reviews this before it merges.

🤖 Generated with Claude Code

Runs translate doctor --require-state from action-translation v0.33.0 on every PR and on pushes to main. See QuantEcon/action-translation#370.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-109--verdant-toffee-3261a8.netlify.app

Commit: 218d21d


Build Info

@mmcky
mmcky merged commit 8675750 into main Nov 16, 2026
3 checks passed
@mmcky
mmcky deleted the state-files-check branch November 16, 2026 09:28
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