diff --git a/.github/workflows/tests-dbt-version.yml b/.github/workflows/tests-dbt-version.yml index 854a37e..ecdf735 100644 --- a/.github/workflows/tests-dbt-version.yml +++ b/.github/workflows/tests-dbt-version.yml @@ -1,4 +1,4 @@ -name: Build and Test +name: Build and Test DBT ${{ inputs.dbt-version }} on: workflow_call: @@ -8,8 +8,7 @@ on: type: string jobs: - build: - + test-dbt-version: runs-on: macos-latest strategy: fail-fast: false diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c5d5de..9a7b96e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,16 +3,16 @@ name: Build and Test on: push: branches: [ main ] - paths-ignore: - - '.github/**' - - '.idea/**' - - '.run/**' + # paths-ignore: + # - '.github/**' + # - '.idea/**' + # - '.run/**' pull_request: branches: [ main ] - paths-ignore: - - '.github/**' - - '.idea/**' - - '.run/**' +# paths-ignore: +# - '.github/**' +# - '.idea/**' +# - '.run/**' jobs: call-test-dbt-1-8: @@ -40,16 +40,11 @@ jobs: - 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 + # 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 - - name: Run Tests - run: | - python -c "from dbt.version import get_installed_version as get_dbt_version;print(f'dbt version={get_dbt_version()}')" - python -m coverage run --source=./tests/ -m unittest discover -s tests/ - python -m coverage report -m ./opendbt/*.py