active ci tests + husky for pre-commit #2
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: dbt quality | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - 'models/**' | |
| - 'macros/**' | |
| - 'tests/**' | |
| - 'dbt_project.yml' | |
| - 'packages.yml' | |
| - 'profiles.yml' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| - '.github/workflows/dbt_quality.yml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| parse: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --locked | |
| - name: Install dbt packages | |
| run: uv run dbt deps | |
| - name: Parse dbt project | |
| run: uv run dbt parse --no-partial-parse |