Repository navigation
Add the State files check (translate doctor --require-state) - #109
Merged
Merged
Conversation
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>
📖 Netlify Preview Ready!Preview URL: https://pr-109--verdant-toffee-3261a8.netlify.app Commit: Build Info
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds one file,
.github/workflows/state-files.yml, a check called State files. On every pull request and on every push tomain, itsstate-filesjob checks out QuantEcon/action-translation at thev0.33.0release, builds the translate CLI and runstranslate doctor --require-stateagainst this edition. The job fails when a lecture has no state file in.translate/state/and isn't declared instate-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 atv0.33.0,translate doctor --require-statepasses on this branch.@mmcky reviews this before it merges.
🤖 Generated with Claude Code