Feature/serverless v4 #16
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: "Validate Bundle" | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate-bundle: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12"] | |
| env: | |
| DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }} | |
| DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }} | |
| DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }} | |
| DATABRICKS_BUNDLE_ENV: dev | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.9.16" | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - uses: databricks/setup-cli@main | |
| with: | |
| version: 0.279.0 | |
| - name: Install the project | |
| run: uv sync --locked --extra dev | |
| - name: Check Databricks CLI | |
| run: databricks current-user me | |
| - name: Validate Databricks Bundle | |
| run: databricks bundle validate |