Skip to content

CI create subflow per dbt version testing #287

CI create subflow per dbt version testing

CI create subflow per dbt version testing #287

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main ]
# paths-ignore:
# - '.github/**'
# - '.idea/**'
# - '.run/**'
pull_request:
branches: [ main ]
# paths-ignore:
# - '.github/**'
# - '.idea/**'
# - '.run/**'
jobs:
call-test-dbt-1-8:
uses: ./.github/workflows/tests-dbt-version.yml

Check failure on line 19 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. In .github/workflows/tests.yml (Line: 19, Col: 11): Error from called workflow memiiso/opendbt/.github/workflows/tests-dbt-version.yml@eaeea63391d8a709e85754b4578a65d85b508a14 (Line: 1, Col: 7): Unrecognized named-value: 'inputs'. Located at position 1 within expression: inputs.dbt-version
with:
dbt-version: "1.8"
call-test-dbt-1-9:
uses: ./.github/workflows/tests-dbt-version.yml
with:
dbt-version: "1.9"
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
dbt-version: [ "1.6", "1.7", "1.8", "1.9" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
dbt-version: ${{ matrix.dbt-version }}
- name: Build & Install
run: |
pip install -q coverage pylint
# pip install -q dbt-core==${{ matrix.dbt-version }}.* dbt-duckdb==${{ matrix.dbt-version }}.* --force-reinstall --upgrade
# # FIX for protobuf issue: https://github.com/dbt-labs/dbt-core/issues/9759
# pip install -q "apache-airflow" "protobuf>=4.25.3,<5.0.0" "opentelemetry-proto<1.28.0" --prefer-binary
# pip install -q .[test] --prefer-binary
python --version
python -c "from dbt.version import get_installed_version as get_dbt_version;print(f'dbt version={get_dbt_version()}')"
python -m compileall -f opendbt
python -m pylint opendbt