Skip to content

Commit

Permalink
💚 fix integration testing configuration (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx authored Aug 11, 2023
1 parent 8674641 commit 4aa3ee3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"databricks-sdk>=0.2.1, <0.3.0",
"databricks-sdk>=0.2.1",
"typer[all]>=0.9.0,<0.10.0",
"pyhocon>=0.3.60,<0.4.0",
"pydantic>=2.0.3, <3.0.0",
Expand Down Expand Up @@ -54,6 +54,16 @@ Source = "https://github.com/databricks/UC-Upgrade"
[tool.hatch.version]
path = "src/uc_migration_toolkit/__about__.py"

[tool.hatch.envs.integration]
dependencies = [
"uc-migration-toolkit[test]",
"uc-migration-toolkit[dbconnect]",
"delta-spark>=2.4.0,<3.0.0"
]

[tool.hatch.envs.integration.scripts]
test = "pytest tests/integration --cov uc_migration_toolkit --cov uc_migration_toolkit --cov-report=html"

[tool.hatch.envs.default]

[tool.hatch.envs.default.scripts]
Expand All @@ -67,11 +77,9 @@ dependencies = [
"pyspark>=3.4.0,<=3.5.0",
"delta-spark>=2.4.0,<3.0.0"
]
[tool.hatch.envs.unit.scripts]
test = "pytest tests/unit"
test-cov = "pytest tests/unit --cov uc_migration_toolkit"
test-cov-report = "pytest tests/unit --cov uc_migration_toolkit --cov-report=html"

[tool.hatch.envs.unit.scripts]
test = "pytest tests/unit --cov uc_migration_toolkit --cov-report=html"

[[tool.hatch.envs.all.matrix]]
python = [ "3.9", "3.10", "3.11"]
Expand Down

0 comments on commit 4aa3ee3

Please sign in to comment.