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

chore: use -s for pytests

parent a8b771dd
...@@ -108,13 +108,13 @@ jobs: ...@@ -108,13 +108,13 @@ jobs:
pwd pwd
cd ../ComfyUI cd ../ComfyUI
python nunchaku_tests/scripts/nunchaku-flux1-dev.py python nunchaku_tests/scripts/nunchaku-flux1-dev.py
pytest -v nunchaku_tests/ pytest -s nunchaku_tests/
- name: Run nunchaku tests - name: Run nunchaku tests
run: | run: |
source $(conda info --base)/etc/profile.d/conda.sh source $(conda info --base)/etc/profile.d/conda.sh
conda activate test_env || { echo "Failed to activate conda env"; exit 1; } conda activate test_env || { echo "Failed to activate conda env"; exit 1; }
which python 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 python .github/workflows/run_all_tests.py
- name: clean up - name: clean up
if: always() if: always()
......
...@@ -21,7 +21,7 @@ def run_all_tests(): ...@@ -21,7 +21,7 @@ def run_all_tests():
failed_tests = [] failed_tests = []
for test_file in test_files: for test_file in test_files:
print(f"Running {test_file} ...") 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: if result.returncode != 0:
print(f"Test failed: {test_file}") print(f"Test failed: {test_file}")
failed_tests.append(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