feat: Add integration tests for dbt import #18
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-integration-tests | |
| # Run dbt integration tests on PRs | |
| on: | |
| pull_request: | |
| paths: | |
| - 'sdk/python/feast/dbt/**' | |
| - 'sdk/python/tests/integration/dbt/**' | |
| - 'sdk/python/tests/unit/dbt/**' | |
| - '.github/workflows/dbt-integration-tests.yml' | |
| jobs: | |
| dbt-integration-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| env: | |
| PYTHON: ${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: make install-python-dependencies-ci | |
| - name: Install dbt and dbt-duckdb | |
| run: | | |
| uv pip install --system dbt-core dbt-duckdb | |
| - name: Run dbt integration tests | |
| run: make test-python-integration-dbt | |
| - name: Minimize uv cache | |
| run: uv cache prune --ci |