Skip to content

Commit

Permalink
Tests create subflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsimsek committed Dec 17, 2024
1 parent 772ab9b commit 7c6ddd2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tests-dbt-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test
name: Build and Test DBT ${{ inputs.dbt-version }}

on:
workflow_call:
Expand All @@ -8,8 +8,7 @@ on:
type: string

jobs:
build:

test-dbt-version:
runs-on: macos-latest
strategy:
fail-fast: false
Expand Down
29 changes: 12 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 7c6ddd2

Please sign in to comment.