Skip to content

Commit b405cb0

Browse files
committed
tests: test-core, pybind11 in full test
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 1834c5b commit b405cb0

File tree

4 files changed

+35
-26
lines changed

4 files changed

+35
-26
lines changed

.distro/python-scikit-build-core.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject
5050

5151
%generate_buildrequires
5252
export HATCH_METADATA_CLASSIFIERS_NO_VERIFY=1
53-
%pyproject_buildrequires -g test%{?with_optional_tests:,test-meta,test-numpy,test-pybind11}
53+
%pyproject_buildrequires -g test-core%{?with_optional_tests:test-parallel,test-meta,test-numpy,test-pybind11}
5454

5555

5656
%build

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187

188188
- name: Install min requirements
189189
run: |
190-
uv pip install -e. --group=test-pybind11 --resolution=lowest-direct --system
190+
uv pip install -e. --group=test --resolution=lowest-direct --system
191191
192192
- name: Setup CMake 3.15
193193
uses: jwlawson/[email protected]
@@ -223,7 +223,7 @@ jobs:
223223
run: python3.13t -m venv /venv
224224

225225
- name: Install deps
226-
run: /venv/bin/pip install -e . --group=test-pybind11 ninja
226+
run: /venv/bin/pip install -e . --group=test ninja
227227

228228
- name: Test package
229229
run: /venv/bin/pytest
@@ -246,7 +246,7 @@ jobs:
246246
cmake ninja git make gcc-g++ python39 python39-devel python39-pip
247247

248248
- name: Install
249-
run: python3.9 -m pip install . --group=test-pybind11
249+
run: python3.9 -m pip install . --group=test
250250

251251
- name: Test package
252252
run:
@@ -279,7 +279,7 @@ jobs:
279279
persist-credentials: false
280280

281281
- name: Install
282-
run: python -m pip install . --group=test-pybind11
282+
run: python -m pip install . --group=test
283283

284284
- name: Test package
285285
run: >-
@@ -312,7 +312,7 @@ jobs:
312312
persist-credentials: false
313313

314314
- name: Install
315-
run: python -m pip install . --group=test-pybind11
315+
run: python -m pip install . --group=test
316316

317317
- name: Test package
318318
run: >-

pyproject.toml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ hatch.scikit-build = "scikit_build_core.hatch.hooks"
7474

7575

7676
[dependency-groups]
77-
test = [
77+
test-core = [
7878
"build >=0.8",
7979
"cattrs >=22.2",
8080
"filelock >=3.8",
@@ -84,7 +84,6 @@ test = [
8484
"pip>=24.1; python_version>='3.13'",
8585
"pytest >=7.2",
8686
"pytest-subprocess >=1.5",
87-
'pytest-xdist >=3.1',
8887
'setuptools >=43; python_version<"3.9"',
8988
'setuptools >=45; python_version=="3.9"',
9089
'setuptools >=49; python_version>="3.10" and python_version<"3.12"',
@@ -93,37 +92,47 @@ test = [
9392
"virtualenv >=20.20",
9493
"wheel >=0.40",
9594
]
95+
test-parallel = [
96+
{ include-group = "test-core" },
97+
'pytest-xdist >=3.1',
98+
]
9699
test-meta = [
97-
{ include-group = "test" },
100+
{ include-group = "test-core" },
98101
"hatch-fancy-pypi-readme>=23.2",
99-
"setuptools-scm",
102+
"setuptools-scm>=5",
100103
]
101104
test-numpy = [
102-
{ include-group = "test" },
103-
"numpy; python_version<'3.14' and platform_python_implementation!='PyPy' and (platform_system != 'Windows' or platform_machine != 'ARM64')",
104-
"numpy~=1.24.0; python_version=='3.8' and platform_python_implementation=='PyPy'",
105-
"numpy~=2.0.0; python_version=='3.9' and platform_python_implementation=='PyPy'",
106-
"numpy~=2.2.0; python_version=='3.10' and platform_python_implementation=='PyPy'",
107-
]
108-
test-schema = [
109-
{ include-group = "test" },
110-
"fastjsonschema",
111-
"validate-pyproject",
105+
{ include-group = "test-core" },
106+
"numpy>=1.24; python_version<'3.15' and platform_python_implementation!='PyPy' and (platform_system != 'Windows' or platform_machine != 'ARM64')",
107+
"numpy~=1.24; python_version=='3.8' and platform_python_implementation=='PyPy'",
108+
"numpy~=2.0; python_version=='3.9' and platform_python_implementation=='PyPy'",
109+
"numpy~=2.2; python_version=='3.10' and platform_python_implementation=='PyPy'",
110+
"numpy~=2.4; python_version=='3.11' and platform_python_implementation=='PyPy'",
112111
]
113112
test-pybind11 = [
114-
{ include-group = "test" },
113+
{ include-group = "test-core" },
115114
"pybind11 >=2.11",
116115
]
116+
test-schema = [
117+
{ include-group = "test-core" },
118+
"fastjsonschema>=2.16.2",
119+
"validate-pyproject>=0.21",
120+
]
121+
test = [
122+
{ include-group = "test-core" },
123+
{ include-group = "test-meta" },
124+
{ include-group = "test-numpy" },
125+
{ include-group = "test-parallel" },
126+
{ include-group = "test-pybind11" },
127+
{ include-group = "test-schema" },
128+
]
117129
cov = [
118130
{ include-group = "test" },
119131
"pytest-cov",
120132
]
121133
dev = [
122134
{ include-group = "cov" },
123-
{ include-group = "test-meta" },
124-
{ include-group = "test-numpy" },
125-
{ include-group = "test-pybind11" },
126-
{ include-group = "test-schema" },
135+
{ include-group = "test" },
127136
"rich",
128137
]
129138
docs = [

tests/plans.fmf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
node-date: 2025-02-27T16:18:39-05:00
2828
describe-name: v0.11.0
2929
EOF
30-
pip install --user . --group=test-pybind11
30+
pip install --user . --group=test
3131
discover:
3232
how: fmf
3333
filter: "tag: pytest"

0 commit comments

Comments
 (0)