-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.07 KB
/
deploy-test.yml
File metadata and controls
42 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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.279.0
- name: Install the project
run: uv sync --locked --all-extras
- name: Check Databricks CLI
run: databricks current-user me
- name: Deploy Databricks Bundle
run: databricks bundle deploy
working-directory: .