#v1 Add metadata method in CheckpointLayout mirroring top-level API.
#704
Workflow file for this run
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
| name: Code Formatting & Lint Validation | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| style-check: | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'copybara-service[bot]' | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| # This reads from .github-python-version (the minimum Python version that Orbax supports). | |
| python-version-file: '.github-python-version' | |
| cache: 'pip' | |
| - name: Install Pre-commit and PyType | |
| run: pip install pre-commit pytype | |
| - name: Execute Code Formatting & Lint Validation on PR Delta | |
| run: pre-commit run --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }} --show-diff-on-failure |