[API] Add rbac.restrict_all_users_mutations to reserve -u for admins #35923
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: format | |
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the main branch | |
| push: | |
| branches: | |
| - master | |
| - 'releases/**' | |
| pull_request: | |
| branches: | |
| - master | |
| - 'releases/**' | |
| merge_group: | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| uv venv --seed ~/test-env | |
| source ~/test-env/bin/activate | |
| uv pip install yapf==0.32.0 | |
| uv pip install toml==0.10.2 | |
| uv pip install isort==5.12.0 | |
| - name: Running yapf | |
| run: | | |
| source ~/test-env/bin/activate | |
| yapf --diff --recursive ./ --exclude 'sky/skylet/ray_patches/**' \ | |
| --exclude 'sky/schemas/generated/**' \ | |
| --exclude 'tests/unit_tests/test_sky/backends/testdata/**' | |
| - name: Running isort for yapf formatted files | |
| run: | | |
| source ~/test-env/bin/activate | |
| isort --diff --check ./ --sg 'sky/skylet/ray_patches/**' \ | |
| --sg 'sky/schemas/generated/**' \ | |
| --sg 'tests/unit_tests/test_sky/backends/testdata/**' |