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 36b4ef6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
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
18 changes: 12 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[tox]
skipsdist = True
envlist = py38,py39,py310,py311
envlist = py{38,39,310,311,312}

[testenv:{unit,py38,py39,py310,py311,py}]
[testenv]
setenv =
PIP_PRE=1

[testenv:{unit,py38,py39,py310,py311,py312,py}]
description = unit testing
skip_install = True
passenv = *
Expand All @@ -12,16 +16,18 @@ 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 = *
setenv =
PIP_PRE=1
commands = {envpython} -m pytest {posargs} tests/functional/adapter
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 +54,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 +63,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 36b4ef6

Please sign in to comment.