π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Fix Audio Unit test failures on GitHub Actions.
Peter Sobote8db3e8278ce
diff --git a/tests/download_test_plugins.py b/tests/download_test_plugins.pyindex d77726d..477344d 100644--- a/tests/download_test_plugins.py+++ b/tests/download_test_plugins.py@@ -27,20 +27,21 @@ def main():credentials = service_account.Credentials.from_service_account_info(json_acct_info)client = storage.Client(credentials=credentials)- target_filepath = os.path.join(".", "tests", "plugins", platform.system())- bucket = client.bucket(GCS_ASSET_BUCKET_NAME)- prefix = f"test-plugins/{platform.system()}"-- # Manually iterate here instead of just calling gsutil on the command line as- # GSUtil on Windows is not 100% guaranteed to install properly on GitHub Actions.- print("Downloading test plugin files from Google Cloud Storage...")- for blob in tqdm(list(bucket.list_blobs(prefix=prefix))):- local_path = os.path.join(target_filepath, blob.name.replace(prefix + "/", ""))- if local_path.endswith("/"):- os.makedirs(local_path, exist_ok=True)- else:- os.makedirs(os.path.dirname(local_path), exist_ok=True)- blob.download_to_filename(local_path)+ for plugin_type in ("effect", "instrument"):+ target_filepath = os.path.join(".", "tests", "plugins", plugin_type, platform.system())+ bucket = client.bucket(GCS_ASSET_BUCKET_NAME)+ prefix = f"test-plugins/{plugin_type}/{platform.system()}"++ # Manually iterate here instead of just calling gsutil on the command line as+ # GSUtil on Windows is not 100% guaranteed to install properly on GitHub Actions.+ print(f"Downloading test {plugin_type} plugin files from Google Cloud Storage...")+ for blob in tqdm(list(bucket.list_blobs(prefix=prefix))):+ local_path = os.path.join(target_filepath, blob.name.replace(prefix + "/", ""))+ if local_path.endswith("/"):+ os.makedirs(local_path, exist_ok=True)+ else:+ os.makedirs(os.path.dirname(local_path), exist_ok=True)+ blob.download_to_filename(local_path)print("Done!")diff --git a/tests/test_external_plugins.py b/tests/test_external_plugins.pyindex e2b416f..5e35055 100644--- a/tests/test_external_plugins.py+++ b/tests/test_external_plugins.py@@ -64,6 +64,9 @@ if os.getenv("CIBW_TEST_REQUIRES") or os.getenv("CI"):AVAILABLE_EFFECT_PLUGINS_IN_TEST_ENVIRONMENT = [f for f in AVAILABLE_EFFECT_PLUGINS_IN_TEST_ENVIRONMENT if "component" not in f]+ AVAILABLE_INSTRUMENT_PLUGINS_IN_TEST_ENVIRONMENT = [+ f for f in AVAILABLE_INSTRUMENT_PLUGINS_IN_TEST_ENVIRONMENT if "component" not in f+ ]AVAILABLE_PLUGINS_IN_TEST_ENVIRONMENT = (AVAILABLE_EFFECT_PLUGINS_IN_TEST_ENVIRONMENT + AVAILABLE_INSTRUMENT_PLUGINS_IN_TEST_ENVIRONMENT