Commit 92d75723 authored by Muyang Li's avatar Muyang Li
Browse files

chore: use -s for pytests

parent a8b771dd
......@@ -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()
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment