Skip/Exclude One Combination of Matrix #1923
Unanswered
mgeorge-is
asked this question in
Q&A
Replies: 2 comments 5 replies
-
I don't think there is a nicer way than https://hatch.pypa.io/latest/config/environment/advanced/#name-overrides currently. So in your case something like: [tool.hatch.envs.tests.overrides]
name.'^py3\.13-np1\.26$'.platforms = ["linux", "macos"] |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have a similar problem, where I'd like to run against pre-release dependencies only for the latest version of Python. Following your example and @flying-sheep's solution in #603 (comment), I tried [[tool.hatch.envs.hatch-test.matrix]]
deps = ["stable"]
python = ["3.10", "3.13"]
[tool.hatch.envs.hatch-test.overrides]
name.'^py3\.13.*$'.deps = ["stable", "pre"]
matrix.deps.env-vars = [
{ key = "UV_PRERELEASE", value = "allow", if = [
"pre",
] },
] But
in that case. Do you have any suggestion what I need to change? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I have a matrix setup like this:
This works fine but I would like to skip a single combination (
python = ["3.13"]
,numpy = ["np1.26"]
) when the platform iswindows
. It seems like this may be possible with overrides but I cannot figure out the correct syntax. Appreciate any advice!Beta Was this translation helpful? Give feedback.
All reactions