The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Run unit tests on Windows/MacOS as well. (#5018)
Robin Huang6ad0ddbae4c7
diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.ymlindex a988c8a8f..b3a4b4ea0 100644--- a/.github/workflows/test-unit.yml+++ b/.github/workflows/test-unit.yml@@ -8,10 +8,15 @@ on:jobs:test:- runs-on: ubuntu-latest+ strategy:+ matrix:+ os: [ubuntu-latest, windows-latest, macos-latest]+ runs-on: ${{ matrix.os }}+ continue-on-error: truesteps:- uses: actions/checkout@v4- - uses: actions/setup-python@v4+ - name: Set up Python+ uses: actions/setup-python@v4with:python-version: '3.10'- name: Install requirementsdiff --git a/tests-unit/folder_paths_test/filter_by_content_types_test.py b/tests-unit/folder_paths_test/filter_by_content_types_test.pyindex 5941bfa94..5574789ec 100644--- a/tests-unit/folder_paths_test/filter_by_content_types_test.py+++ b/tests-unit/folder_paths_test/filter_by_content_types_test.py@@ -6,9 +6,9 @@ from folder_paths import filter_files_content_types@pytest.fixture(scope="module")def file_extensions():return {- 'image': ['bmp', 'cdr', 'gif', 'heif', 'ico', 'jpeg', 'jpg', 'pcx', 'png', 'pnm', 'ppm', 'psd', 'sgi', 'svg', 'tiff', 'webp', 'xbm', 'xcf', 'xpm'],- 'audio': ['aif', 'aifc', 'aiff', 'au', 'awb', 'flac', 'm4a', 'mp2', 'mp3', 'ogg', 'sd2', 'smp', 'snd', 'wav'],- 'video': ['avi', 'flv', 'm2v', 'm4v', 'mj2', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'ogv', 'qt', 'webm', 'wmv']+ 'image': ['gif', 'heif', 'ico', 'jpeg', 'jpg', 'png', 'pnm', 'ppm', 'svg', 'tiff', 'webp', 'xbm', 'xpm'],+ 'audio': ['aif', 'aifc', 'aiff', 'au', 'flac', 'm4a', 'mp2', 'mp3', 'ogg', 'snd', 'wav'],+ 'video': ['avi', 'm2v', 'm4v', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'ogv', 'qt', 'webm', 'wmv']}diff --git a/tests-unit/utils/extra_config_test.py b/tests-unit/utils/extra_config_test.pyindex 0effd89e8..ef772d40b 100644--- a/tests-unit/utils/extra_config_test.py+++ b/tests-unit/utils/extra_config_test.py@@ -78,7 +78,9 @@ def test_load_extra_model_paths_expands_userpath(# Check if add_model_folder_path was called with the correct argumentsfor actual_call, expected_call in zip(mock_add_model_folder_path.call_args_list, expected_calls):- assert actual_call.args == expected_call+ assert actual_call.args[0] == expected_call[0]+ assert os.path.normpath(actual_call.args[1]) == os.path.normpath(expected_call[1]) # Normalize and check the path to check on multiple OS.+ assert actual_call.args[2] == expected_call[2]# Check if yaml.safe_load was calledmock_yaml_safe_load.assert_called_once()