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
92d75723
Commit
92d75723
authored
Aug 02, 2025
by
Muyang Li
Browse files
chore: use -s for pytests
parent
a8b771dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.github/workflows/pr-test.yaml
.github/workflows/pr-test.yaml
+2
-2
.github/workflows/run_all_tests.py
.github/workflows/run_all_tests.py
+1
-1
No files found.
.github/workflows/pr-test.yaml
View file @
92d75723
...
...
@@ -108,13 +108,13 @@ jobs:
pwd
cd ../ComfyUI
python nunchaku_tests/scripts/nunchaku-flux1-dev.py
pytest -
v
nunchaku_tests/
pytest -
s
nunchaku_tests/
-
name
:
Run nunchaku tests
run
:
|
source $(conda info --base)/etc/profile.d/conda.sh
conda activate test_env || { echo "Failed to activate conda env"; exit 1; }
which python
pytest -
v
tests/flux/test_flux_examples.py
pytest -
s
tests/flux/test_flux_examples.py
python .github/workflows/run_all_tests.py
-
name
:
clean up
if
:
always()
...
...
.github/workflows/run_all_tests.py
View file @
92d75723
...
...
@@ -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"
,
"--reruns"
,
"2"
,
"--reruns-delay"
,
"0"
,
test_file
])
result
=
subprocess
.
run
([
"pytest"
,
"--reruns"
,
"2"
,
"--reruns-delay"
,
"0"
,
"-s"
,
test_file
])
if
result
.
returncode
!=
0
:
print
(
f
"Test failed:
{
test_file
}
"
)
failed_tests
.
append
(
test_file
)
...
...
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