Skip to content

Commit

Permalink
Test with dbt-core prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 2, 2024
1 parent c30c548 commit 929b2b0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
4 changes: 3 additions & 1 deletion dbt/adapters/duckdb/plugins/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
from . import pd_utils
from ..utils import SourceConfig
from ..utils import TargetConfig
from dbt.logger import GLOBAL_LOGGER as logger
from dbt.adapters.events.logging import AdapterLogger

logger = AdapterLogger("DuckDB")


class Plugin(BasePlugin):
Expand Down
9 changes: 9 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import resource
import subprocess
import time
from importlib import metadata

import duckdb
import pytest
Expand All @@ -23,6 +24,14 @@ def pytest_addoption(parser):
parser.addoption("--profile", action="store", default="memory", type=str)


def pytest_report_header() -> list[str]:
"""Return a list of strings to be displayed in the header of the report."""
return [
f"duckdb: {metadata.version('duckdb')}",
f"dbt-core: {metadata.version('dbt-core')}",
]


@pytest.fixture(scope="session")
def profile_type(request):
return request.config.getoption("--profile")
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tox]
skipsdist = True
envlist = py38,py39,py310,py311
envlist = py{38,39,310,311,312}

[testenv:{unit,py38,py39,py310,py311,py}]
[testenv:{unit,py38,py39,py310,py311,py312,py}]
description = unit testing
skip_install = True
passenv = *
Expand All @@ -12,7 +12,7 @@ deps =
-e.


[testenv:{functional,py38,py39,py310,py311,py}]
[testenv:{functional,py38,py39,py310,py311,py312,py}]
description = adapter functional testing
skip_install = True
passenv = *
Expand All @@ -21,7 +21,7 @@ deps =
-rdev-requirements.txt
-e.

[testenv:{filebased,py38,py39,py310,py311,py}]
[testenv:{filebased,py38,py39,py310,py311,py312,py}]
description = adapter functional testing using file-based DBs
skip_install = True
passenv = *
Expand All @@ -48,7 +48,7 @@ deps =
-rdev-requirements.txt
-e.[md]

[testenv:{fsspec,py38,py39,py310,py311,py}]
[testenv:{fsspec,py38,py39,py310,py311,py312,py}]
description = adapter fsspec testing
skip_install = True
passenv = *
Expand All @@ -57,7 +57,7 @@ deps =
-rdev-requirements.txt
-e.

[testenv:{plugins,py38,py39,py310,py311,py}]
[testenv:{plugins,py38,py39,py310,py311,py312,py}]
description = adapter plugin testing
skip_install = True
passenv = *
Expand Down

0 comments on commit 929b2b0

Please sign in to comment.