From 160ca081387e6d871487a6caedeb9bbacf073665 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Thu, 26 Dec 2024 20:05:54 -0500 Subject: [PATCH] Use python 3.9 in launch test instead of 3.8 Fix ruff check. --- .github/workflows/test-launch.yml | 2 +- comfy/model_management.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-launch.yml b/.github/workflows/test-launch.yml index 5d665d6a..c56283c2 100644 --- a/.github/workflows/test-launch.yml +++ b/.github/workflows/test-launch.yml @@ -17,7 +17,7 @@ jobs: path: "ComfyUI" - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.9' - name: Install requirements run: | python -m pip install --upgrade pip diff --git a/comfy/model_management.py b/comfy/model_management.py index c36c52ff..731fb584 100644 --- a/comfy/model_management.py +++ b/comfy/model_management.py @@ -87,7 +87,7 @@ except: pass try: - import torch_npu + import torch_npu # noqa: F401 _ = torch.npu.device_count() npu_available = torch.npu.is_available() except: