Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Make TensorFlow an optional test dependency.

Peter Sobotda1fd9231deb
diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml
index a84be57..1cf8c84 100644
--- a/.github/workflows/all.yml
+++ b/.github/workflows/all.yml
@@ -91,6 +91,9 @@ jobs:
python -m pip install --upgrade pip
pip install wheel
pip install -r test-requirements.txt
+ # TensorFlow is an optional dependency; if present, we'll run tests with it:
+ # There are no environment specifiers to select when TensorFlow binaries are available.
+ pip install tensorflow || true
- name: Install JQ for coverage badge on Linux
run: sudo apt-get install -y jq
if: runner.os == 'Linux'
@@ -158,6 +161,9 @@ jobs:
python -m pip install --upgrade pip
pip install wheel
pip install -r test-requirements.txt
+ # TensorFlow is an optional dependency; if present, we'll run tests with it:
+ # There are no environment specifiers to select when TensorFlow binaries are available.
+ pip install tensorflow || true
- name: Build pedalboard locally
env:
DEBUG: "0"
diff --git a/test-requirements.txt b/test-requirements.txt
index aa060f5..15fd968 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -14,7 +14,6 @@ interrogate
numpy
sox
-tensorflow~=2.8; python_version < '3.10' and python_version > '3.6' and platform.machine != 'arm64'
google-cloud-storage
tqdm
psutil