Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
53836669
Commit
53836669
authored
Aug 01, 2025
by
Muyang Li
Browse files
chore: test support retries
parent
16f4161e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
.github/workflows/run_all_tests.py
.github/workflows/run_all_tests.py
+1
-1
docs/source/developer/contribution_guide.rst
docs/source/developer/contribution_guide.rst
+2
-3
tests/requirements.txt
tests/requirements.txt
+1
-0
No files found.
.github/workflows/run_all_tests.py
View file @
53836669
...
...
@@ -21,7 +21,7 @@ def run_all_tests():
failed_tests
=
[]
for
test_file
in
test_files
:
print
(
f
"Running
{
test_file
}
..."
)
result
=
subprocess
.
run
([
"pytest"
,
test_file
])
result
=
subprocess
.
run
([
"pytest"
,
"--reruns"
,
"2"
,
"--reruns-delay"
,
"0"
,
test_file
])
if
result
.
returncode
!=
0
:
print
(
f
"Test failed:
{
test_file
}
"
)
failed_tests
.
append
(
test_file
)
...
...
docs/source/developer/contribution_guide.rst
View file @
53836669
...
...
@@ -59,9 +59,8 @@ Running the Tests
.. code-block:: shell
HF_TOKEN=$YOUR_HF_TOKEN pytest -v tests/flux/test_flux_memory.py
HF_TOKEN=$YOUR_HF_TOKEN pytest -v tests/flux --ignore=tests/flux/test_flux_memory.py
HF_TOKEN=$YOUR_HF_TOKEN pytest -v tests/sana
HF_TOKEN=$YOUR_HF_TOKEN pytest -v tests/flux/test_flux_examples.py
HF_TOKEN=$YOUR_HF_TOKEN python .github/workflows/run_all_tests.py
.. note::
...
...
tests/requirements.txt
View file @
53836669
...
...
@@ -10,3 +10,4 @@ insightface
opencv-python
facexlib
onnxruntime
pytest-rerunfailures
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment