Skip to content

Commit 809a4c9

Browse files
committed
fix: add missing pytest plugins and simplify pytest configuration
- Add pytest-cov and pytest-xdist to dev dependencies - Remove coverage configuration from pyproject.toml to avoid conflicts - Keep coverage arguments only in GitHub Actions workflow
1 parent b1472f1 commit 809a4c9

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
CUDA_VISIBLE_DEVICES: "-1"
5656
TF_CPP_MIN_LOG_LEVEL: "2"
5757
run: |
58-
pytest -v -n auto --cov-report=xml
58+
pytest -v -n auto --cov=locator --cov-report=xml --cov-report=term-missing
5959
6060
- name: Upload coverage reports
6161
uses: codecov/codecov-action@v4

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ addopts = [
1111
"-ra",
1212
"--strict-markers",
1313
"--strict-config",
14-
"--cov=locator",
15-
"--cov-branch",
16-
"--cov-report=term-missing:skip-covered",
17-
"--cov-fail-under=0", # Set to desired minimum coverage
1814
]
1915
markers = [
2016
"slow: marks tests as slow (deselect with '-m \"not slow\"')",

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
extras_require={
4141
"dev": [
4242
"pytest",
43+
"pytest-cov", # Coverage reporting
44+
"pytest-xdist", # Parallel test execution
4345
"black", # Code formatting
4446
"flake8", # Code linting
4547
"isort", # Import sorting

0 commit comments

Comments
 (0)