From bb94b808dc0e2112bf95e2a937260dd26ff7851c Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Fri, 5 Jul 2024 11:11:21 -0700 Subject: [PATCH] Improve automated test coverage --- .github/workflows/test.yml | 11 +++++++---- tests/library/__init__.py | 0 .../{distributed => library}/test_embedded_client.py | 0 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 tests/library/__init__.py rename tests/{distributed => library}/test_embedded_client.py (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d03422470..d540d9c41 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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/ ln -s `which python3` /usr/bin/python || true ln -s `which pip3` /usr/bin/pip || true + name: Prepare Python - uses: actions/checkout@v4 - - name: Install dependencies + name: Checkout git repo + - name: Install ComfyUI run: | 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] @@ -41,10 +43,11 @@ jobs: run: | export HSA_OVERRIDE_GFX_VERSION=11.0.0 pytest -v tests/unit - - name: Run all tests + - name: Run all other supported tests run: | export HSA_OVERRIDE_GFX_VERSION=11.0.0 - pytest -v tests + pytest tests/ --ignore=tests/distributed --ignore=tests/unit - name: Lint for errors run: | - pylint comfy \ No newline at end of file + pylint comfy/ + pylint comfy_extras/ \ No newline at end of file diff --git a/tests/library/__init__.py b/tests/library/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/distributed/test_embedded_client.py b/tests/library/test_embedded_client.py similarity index 100% rename from tests/distributed/test_embedded_client.py rename to tests/library/test_embedded_client.py