Skip to content

Commit a03989b

Browse files
committed
pyproject: define test path in pyproject.toml
This way it _just works_.
1 parent ceb3ee6 commit a03989b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ jobs:
9696

9797
- name: Test C Backend
9898
run: |
99-
uv -v run --locked pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/
99+
uv -v run --locked pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v
100100
101101
- name: Test CFFI Backend
102102
env:
103103
PYTHON_ZSTANDARD_IMPORT_POLICY: 'cffi'
104104
run: |
105-
uv -v run --locked -w cffi pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/
105+
uv -v run --locked -w cffi pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v
106106
107107
- name: Test Rust Backend
108108
if: matrix.arch != 'x86'
@@ -113,4 +113,4 @@ jobs:
113113
run: |
114114
# We need --reinstall to get uv to pick up the config settings change.
115115
# Unsure if this is a bug.
116-
uv -v run --locked --config-settings-package 'zstandard:--build-option=--rust-backend' --reinstall pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/
116+
uv -v run --locked --config-settings-package 'zstandard:--build-option=--rust-backend' --reinstall pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ dev = [
4949
"pytest-xdist>=3.8.0",
5050
]
5151

52+
[tool.pytest.ini_options]
53+
testpaths = ["tests"]
54+
5255
[tool.ruff]
5356
line-length = 80
5457

0 commit comments

Comments
 (0)