You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyproject.toml
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ repro = [
63
63
"psutil == 7.1.3",
64
64
"pyarrow == 22.0.0",
65
65
"tensorflow == 2.20.0",
66
-
"ai-edge-litert == 2.0.2; sys_platform == 'linux' or sys_platform == 'darwin'",
66
+
"ai-edge-litert == 2.0.3; sys_platform == 'linux' or sys_platform == 'darwin'",
67
67
]
68
68
tests = [
69
69
"uv >= 0.9.7",
@@ -101,6 +101,7 @@ log_level = "DEBUG"
101
101
testpaths = ["src/birdnet_tests"]
102
102
norecursedirs = ["src/birdnet_v1_tests"]
103
103
markers = [
104
+
"load_model: tests that download all models, should be run before other tests",
104
105
"litert: tests requiring ai_edge_litert backend which can not be loaded after tf is imported (raises ImportError) which happens on parallel test runs",
105
106
"gpu: tests requiring a GPU to run and to be runned sequentially",
106
107
"repro: tests requiring exact package versions to reproduce results",
@@ -159,24 +160,27 @@ deps =
159
160
commands =
160
161
# ruff check src/birdnet
161
162
# ruff check src/birdnet_tests
162
-
pytest -m "not repro and (not litert and not gpu)" -n auto
163
-
pytest -m "not repro and litert" -n auto
164
-
pytest -m "not repro and gpu" -n 1
163
+
pytest -m "load_model" -n auto
164
+
pytest -m "not load_model and not repro and (not litert and not gpu)" -n auto
165
+
pytest -m "not load_model and not repro and litert" -n auto
166
+
pytest -m "not load_model and not repro and gpu" -n 1
165
167
166
168
[testenv:py312-repro]
167
169
deps =
168
170
.[tests,repro]
169
171
commands =
170
-
pytest -m "repro and (not litert and not gpu)" -n auto
171
-
pytest -m "repro and litert" -n auto
172
-
pytest -m "repro and gpu" -n 1
172
+
pytest -m "load_model" -n auto
173
+
pytest -m "not load_model repro and (not litert and not gpu)" -n auto
174
+
pytest -m "not load_model repro and litert" -n auto
175
+
pytest -m "not load_model repro and gpu" -n 1
173
176
174
177
[testenv:py313]
175
178
deps =
176
179
.[tests,and-cuda]
177
180
commands =
178
-
pytest -m "not repro and (not litert and not gpu)" -n auto
179
-
pytest -m "not repro and gpu" -n 1
181
+
pytest -m "load_model" -n auto
182
+
pytest -m "not load_model not repro and (not litert and not gpu)" -n auto
0 commit comments