Skip to content

Commit 0520f96

Browse files
committed
ci: add hatch enviornment for asdf v3 and asdf v4
1 parent 8460530 commit 0520f96

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pyproject.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -57,27 +57,27 @@ test = "pytest {args}"
5757

5858
[[tool.hatch.envs.test.matrix]]
5959
python = ["3.10", "3.11", "3.12"]
60-
numpy-version = ["1", "2"]
60+
numpy = ["1", "2"]
6161

62-
# Only test numpy 2 with python 3.13
6362
[[tool.hatch.envs.test.matrix]]
64-
python = ["3.13"]
65-
numpy-version = ["2"]
66-
63+
python = ["3.10", "3.11", "3.12"]
64+
numpy = ["1", "2"]
65+
asdf = ["3", "4"]
6766

6867
[tool.hatch.envs.test.overrides]
69-
matrix.numpy-version.dependencies = [
70-
{ value = "numpy>=1,<2", if = [
71-
"1",
72-
] },
73-
{ value = "numpy>=2,<3", if = [
74-
"2",
75-
] },
68+
matrix.numpy.dependencies = [
69+
{ value = "numpy>=1,<2", if = ["1"] },
70+
{ value = "numpy>=2,<3", if = ["2"] },
7671
{ value = "astropy>=6.1", if = [
7772
"2",
7873
] },
7974
]
8075

76+
matrix.asdf.dependencies = [
77+
{ value = "asdf>=3,<4", if = ["3"] },
78+
{ value = "asdf>=4,<5", if = ["4"] },
79+
]
80+
8181
[tool.hatch.envs.docs]
8282
dependencies = ["sphinx", "sphinx-autoapi", "sphinx-book-theme", "myst-parser"]
8383

0 commit comments

Comments
 (0)