Skip to content

air: add convert-to-dabs (run YAML -> Databricks Asset Bundle) #5217

air: add convert-to-dabs (run YAML -> Databricks Asset Bundle)

air: add convert-to-dabs (run YAML -> Databricks Asset Bundle) #5217

Workflow file for this run

name: python build
on:
pull_request:
types: [opened, synchronize]
paths:
- python/**
merge_group:
types: [checks_requested]
paths:
- python/**
push:
# Always run on push to main. The build cache can only be reused
# if it was saved by a run from the repository's default branch.
# The run result will be identical to that from the merge queue
# because the commit is identical, yet we need to perform it to
# seed the build cache.
branches:
- main
jobs:
python_tests:
name: tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pyVersion: ['3.10', '3.11', '3.12', '3.13']
steps:
- name: Checkout repository and submodules
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: ${{ matrix.pyVersion }}
version: "0.6.5"
- name: Run tests
run: go tool -modfile=tools/task/go.mod task pydabs-test
python_linters:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
version: "0.6.5"
- name: Run lint
run: go tool -modfile=tools/task/go.mod task pydabs-lint
python_docs:
name: docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
version: "0.6.5"
- name: Run docs
run: go tool -modfile=tools/task/go.mod task pydabs-docs