Skip to content

Use __main__.py as entry point #179

Use __main__.py as entry point

Use __main__.py as entry point #179

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:
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.11" ]
dbt-version: [ "1.7", "1.8" ]
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 coverage pylint
pip install dbt-core==${{ matrix.dbt-version }}.* dbt-duckdb==${{ matrix.dbt-version }}.* --force-reinstall --upgrade
pip install .[test] --prefer-binary
# FIX for protobuf issue: https://github.com/dbt-labs/dbt-core/issues/9759
pip install -q "protobuf>=4.25.3,<5.0.0" "opentelemetry-proto<1.28.0" --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 setup.py
- 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 setup.py