Migrate KubernetesOpts to StructuredOpts dataclass #4498
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: Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout TorchX | |
| uses: actions/checkout@v2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| - name: Install Dependencies | |
| run: | | |
| set -eux | |
| uv sync --frozen --extra dev | |
| uv run lintrunner init | |
| - name: Run Lint | |
| # PYRE is skipped here because it has its own workflow (pyre.yaml) that | |
| # runs pyre directly for cleaner output and better error handling. | |
| run: | | |
| git config --global url."https://${{ secrets.GITHUB_TOKEN }}:[email protected]/".insteadOf "https://github.com/" | |
| uv run lintrunner --skip PYRE --force-color --all-files |