Skip to content

Commit 0e08102

Browse files
committed
TST: move test requirements to a PEP 735 dependency group
1 parent c172cab commit 0e08102

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/build-test.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ jobs:
5151

5252
- name: Build
5353
run: |
54-
uv pip install --editable "." ${{ matrix.install-args }}
55-
- run: uv pip install --requirement test_requirements.txt
56-
- run: uv pip list
54+
uv sync --group test ${{ matrix.install-args }}
5755
- name: Run test suite
5856
run: |
5957
pytest --color yes -ra

.github/workflows/wheels.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ jobs:
3434
uses: pypa/cibuildwheel@v2.23.2
3535
with:
3636
output-dir: dist
37-
env:
38-
CIBW_TEST_COMMAND: >
39-
uv pip install -r {project}/test_requirements.txt
40-
&& pytest --pyargs ewah_bool_utils --color=yes
4137

4238
- uses: actions/upload-artifact@v4
4339
with:

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ license-files = [
5050
"LICENSE",
5151
]
5252

53+
[dependency-groups]
54+
test = [
55+
"pytest>=6.2.4",
56+
]
57+
5358
[tool.ruff.lint]
5459
exclude = ["*__init__.py"]
5560
ignore = ["E501"]
@@ -72,8 +77,8 @@ build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
7277
build-frontend = "build[uv]"
7378
build-verbosity = 1
7479
test-skip = "*-musllinux*"
80+
test-groups = ["test"]
7581
test-command = [
76-
"uv pip install -r {project}/test_requirements.txt",
7782
"pytest --pyargs {project} --color=yes -ra",
7883
]
7984

test_requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)