Improve automated test coverage

This commit is contained in:
doctorpangloss 2024-07-05 11:11:21 -07:00
parent b6b97574dc
commit bb94b808dc
3 changed files with 7 additions and 4 deletions

View File

@ -32,8 +32,10 @@ jobs:
rm -rf /usr/local/lib/python3.10/dist-packages/cv2/ || rm -rf /usr/local/lib/python3.11/dist-packages/cv2/ || rm -rf /usr/local/lib/python3.12/dist-packages/cv2/ rm -rf /usr/local/lib/python3.10/dist-packages/cv2/ || rm -rf /usr/local/lib/python3.11/dist-packages/cv2/ || rm -rf /usr/local/lib/python3.12/dist-packages/cv2/
ln -s `which python3` /usr/bin/python || true ln -s `which python3` /usr/bin/python || true
ln -s `which pip3` /usr/bin/pip || true ln -s `which pip3` /usr/bin/pip || true
name: Prepare Python
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install dependencies name: Checkout git repo
- name: Install ComfyUI
run: | run: |
python -m pip install setuptools pip --upgrade --break-system-packages || python -m pip install pip --upgrade || true python -m pip install setuptools pip --upgrade --break-system-packages || python -m pip install pip --upgrade || true
pip install --break-system-packages --no-build-isolation .[dev] || pip install --no-build-isolation .[dev] pip install --break-system-packages --no-build-isolation .[dev] || pip install --no-build-isolation .[dev]
@ -41,10 +43,11 @@ jobs:
run: | run: |
export HSA_OVERRIDE_GFX_VERSION=11.0.0 export HSA_OVERRIDE_GFX_VERSION=11.0.0
pytest -v tests/unit pytest -v tests/unit
- name: Run all tests - name: Run all other supported tests
run: | run: |
export HSA_OVERRIDE_GFX_VERSION=11.0.0 export HSA_OVERRIDE_GFX_VERSION=11.0.0
pytest -v tests pytest tests/ --ignore=tests/distributed --ignore=tests/unit
- name: Lint for errors - name: Lint for errors
run: | run: |
pylint comfy pylint comfy/
pylint comfy_extras/

View File