How to correctly use include in hatch test #1524
-
Hi Hatch ! I'm trying to run My setup: [tool.hatch.envs.hatch-test.scripts]
run = "pytest{env:HATCH_TEST_ARGS:} {args} -n auto"
run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
cov-combine = "coverage combine"
cov-report = "coverage report"
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.9"]
version = ["pyspark33", "pyspark34"]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.10"]
version = ["pyspark33", "pyspark34", "pyspark35"]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.11", "3.12"]
version = ["pyspark35"]
[tool.hatch.envs.hatch-test.overrides]
matrix.version.extra-dependencies = [
{ value = "pyspark>=3.3,<3.4", if = [
"pyspark33",
] },
{ value = "pyspark>=3.4,<3.5", if = [
"pyspark34",
] },
{ value = "pyspark>=3.5,<3.6", if = [
"pyspark35",
] },
]
name.".*".env-vars = [
{ key = "PYTEST_XDIST_AUTO_NUM_WORKERS", value = "2" },
{ key = "KOHEESIO__PRINT_LOGO", value = "False" },
] I'm trying to include only pyspark34 in python3.9 and using command: hatch test -py 3.9 -i version=pyspark34 but getting execution in
I have also tried just with
provides ───────────────────────────────────────────────────────────────────────────────────────────────────────────── hatch-test.py3.9-pyspark34 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────
bringing up nodes... Can anybody advise how to get execution only in selected env by using |
Beta Was this translation helpful? Give feedback.
Answered by
ofek
May 24, 2024
Replies: 1 comment
-
I'll be fixing this tonight, my apologies! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ofek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#1521
I'll be fixing this tonight, my apologies!