Skip to content

removed old template folders #7

removed old template folders

removed old template folders #7

name: DuckDB/MotherDuck CICD Full Refresh

Check failure on line 1 in .github/workflows/dbt_v1.10.15_duckdb_build_full_refresh.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dbt_v1.10.15_duckdb_build_full_refresh.yml

Invalid workflow file

(Line: 22, Col: 31): Unrecognized named-value: 'env'. Located at position 1 within expression: env.DBT_MOTHERDUCK_CI_DATABASE
on:
# pull_request:
# branches:
# - main
workflow_dispatch: # Allows manual trigger from UI
jobs:
dbt_run:
name: dbt full refresh and test on DuckDB/MotherDuck
runs-on: ubuntu-latest
env:
# Environment variables
PYTHON_VERSION: "3.10"
DBT_PROJECT_DIR: "."
DBT_CORE_VERSION: "1.10.15"
# Connection variables
DBT_MOTHERDUCK_CI_TOKEN: ${{ secrets.DBT_MOTHERDUCK_CI_TOKEN }}
DBT_MOTHERDUCK_CI_DATABASE: "my_db"
DBT_MOTHERDUCK_CI_PATH: "md:${{ env.DBT_MOTHERDUCK_CI_DATABASE }}?motherduck_token=${{ env.DBT_MOTHERDUCK_CI_TOKEN }}"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dbt-core and DuckDB adapter
run: |
python -m pip install --upgrade pip
pip install dbt-core==${{ env.DBT_CORE_VERSION}} dbt-duckdb
- name: Install dbt dependencies
run: dbt deps --profiles-dir ./integration_tests/profiles/duckdb
working-directory: ${{ env.DBT_PROJECT_DIR }}
- name: Test Connection
run: dbt debug --profiles-dir ./integration_tests/profiles/duckdb
working-directory: ${{ env.DBT_PROJECT_DIR }}
- name: Build dbt models (full-refresh)
run: |
dbt build --full-refresh --profiles-dir ./integration_tests/profiles/duckdb
working-directory: ${{ env.DBT_PROJECT_DIR }}