diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4e0c7e..334ca3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,9 +53,13 @@ jobs: pip install torch --index-url https://download.pytorch.org/whl/cpu - name: Validate Python syntax - run: python -m py_compile __init__.py nodes.py presets.py resize.py + run: | + python -m py_compile __init__.py + python -m py_compile nodes/__init__.py nodes/auto_size.py nodes/auto_size_latent.py + python -m py_compile utils/presets.py utils/resize.py - name: Test imports run: | - python -c "import presets; print('✓ presets.py imports successfully')" - python -c "import resize; print('✓ resize.py imports successfully')" + python -c "from utils import presets; print('✓ presets.py imports successfully')" + python -c "from utils import resize; print('✓ resize.py imports successfully')" + diff --git a/tests/test_presets.py b/tests/test_presets.py index 4f7938d..3e924e9 100644 --- a/tests/test_presets.py +++ b/tests/test_presets.py @@ -1,5 +1,5 @@ import unittest -from utils.presets import resolve_resolution, MODEL_SPECS +from utils.presets import resolve_resolution class TestPresets(unittest.TestCase):