Skip to content

Commit

Permalink
install transient github dependencies in parallel with new github dep…
Browse files Browse the repository at this point in the history
…endencies
  • Loading branch information
mikealfare committed Feb 20, 2024
1 parent 3c02f5e commit bd94ef3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ path = "dbt/adapters/postgres/__version__.py"
[tool.hatch.envs.default]
dependencies = [
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git",
"dbt_common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
]

[tool.hatch.envs.lint]
Expand Down Expand Up @@ -81,20 +81,28 @@ all = "python -m mypy ."

[tool.hatch.envs.unit-tests]
dependencies = [
# TODO: remove `dbt-core` dependencies from unit tests
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"freezegun",
"pytest",
"pytest-dotenv",
"pytest-mock",
"pytest-xdist",
]
extra-dependencies = [
# TODO: remove `dbt-core` dependencies from unit tests
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
]
[tool.hatch.envs.unit-tests.scripts]
all = "python -m pytest {args:tests/unit}"

[tool.hatch.envs.integration-tests]
template = "unit-tests"
extra-dependencies = [
# TODO: remove `dbt-core` dependencies from integration tests
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@setup-shared-tests#subdirectory=dbt-tests-adapter",
]
[tool.hatch.envs.integration-tests.env-vars]
Expand Down

0 comments on commit bd94ef3

Please sign in to comment.