Setup Python logging with configurable verbosity (#21) #17
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: "Deploy Bundle to Test" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| deploy-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12"] | |
| environment: test | |
| env: | |
| DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }} | |
| DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }} | |
| DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }} | |
| DATABRICKS_BUNDLE_ENV: test | |
| 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.280.0 | |
| - name: Install the project | |
| run: uv sync --locked --all-extras | |
| - name: Check Databricks CLI | |
| run: databricks current-user me | |
| - name: Log Bundle Changes | |
| run: databricks bundle plan --output json | |
| working-directory: . | |
| - name: Deploy Databricks Bundle | |
| run: databricks bundle deploy | |
| working-directory: . |